hrjy 3 년 전
부모
커밋
006ba14c4b

+ 16 - 30
.idea/workspace.xml

@@ -4,41 +4,15 @@
     <option name="autoReloadType" value="SELECTIVE" />
   </component>
   <component name="ChangeListManager">
-    <list default="true" id="9df7b838-09db-466a-bed4-3e1ac8c3624d" name="变更" comment="">
-      <change afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
-      <change afterPath="$PROJECT_DIR$/.idea/newQudou.iml" afterDir="false" />
+    <list default="true" id="9df7b838-09db-466a-bed4-3e1ac8c3624d" name="变更" comment="commit">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/admin/controller/auction/Auction.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/controller/auction/Auction.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/admin/controller/auction/AuctionBooking.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/controller/auction/AuctionBooking.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/admin/controller/user/User.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/controller/user/User.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/admin/model/auction/AuctionOrder.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/model/auction/AuctionOrder.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/admin/model/user/User.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/model/user/User.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/admin/model/user/UserRecharge.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/model/user/UserRecharge.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/admin/view/auction/auction/index.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/view/auction/auction/index.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/admin/view/auction/auction_booking/index.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/view/auction/auction_booking/index.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/admin/view/index/index.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/view/index/index.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/admin/view/login/index.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/view/login/index.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/admin/view/user/user/index.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/view/user/user/index.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/app/api/controller/auction/AuctionController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/api/controller/auction/AuctionController.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/api/controller/auction/AuctionOrderController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/api/controller/auction/AuctionOrderController.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/app/api/controller/auction/AuctionProductController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/api/controller/auction/AuctionProductController.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/api/controller/user/UserBillController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/api/controller/user/UserBillController.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/api/controller/user/UserRechargeController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/api/controller/user/UserRechargeController.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/app/http/middleware/AllowOriginMiddleware.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/http/middleware/AllowOriginMiddleware.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/app/models/auction/AuctionOrder.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/models/auction/AuctionOrder.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/models/user/UserBill.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/models/user/UserBill.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/models/user/UserRecharge.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/models/user/UserRecharge.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/index/static/js/index.4b0b0b40.js" beforeDir="false" afterPath="$PROJECT_DIR$/public/index/static/js/index.4b0b0b40.js" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/index/static/js/index.7cef0702.js" beforeDir="false" afterPath="$PROJECT_DIR$/public/index/static/js/index.7cef0702.js" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/index/static/js/index.86056633.js" beforeDir="false" afterPath="$PROJECT_DIR$/public/index/static/js/index.86056633.js" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/index/static/js/index.a73fb3d8.js" beforeDir="false" afterPath="$PROJECT_DIR$/public/index/static/js/index.a73fb3d8.js" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/3ac1cf96481d3b196141e60cc7237c4f.php" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/admin/temp/3ac1cf96481d3b196141e60cc7237c4f.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/5435f22dcc53d6dd211a71551ce9d1c0.php" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/admin/temp/5435f22dcc53d6dd211a71551ce9d1c0.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/d5ccc5026f19ab3f146922861f37e83b.php" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/admin/temp/d5ccc5026f19ab3f146922861f37e83b.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/cache/3a/18e85fda2f43f200f015f30d0af45e.php" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/cache/3a/18e85fda2f43f200f015f30d0af45e.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/cache/48/e345b986ae9584f9686dac64ea2c6a.php" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/cache/48/e345b986ae9584f9686dac64ea2c6a.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/cache/59/62ccd748530d5866ded674e0247788.php" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/cache/59/62ccd748530d5866ded674e0247788.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/route/api/route.php" beforeDir="false" afterPath="$PROJECT_DIR$/route/api/route.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/runtime/cache/a9/939d920c0fa6b4fe0b897fb019672a.php" beforeDir="false" afterPath="$PROJECT_DIR$/runtime/cache/a9/939d920c0fa6b4fe0b897fb019672a.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/session/sess_bad423ffe97a0638e54b79b0586a0ae2" beforeDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -139,8 +113,16 @@
       <option name="presentableId" value="Default" />
       <updated>1655946296572</updated>
       <workItem from="1655946298157" duration="4390000" />
-      <workItem from="1655962099358" duration="395000" />
+      <workItem from="1655962099358" duration="7750000" />
     </task>
+    <task id="LOCAL-00001" summary="commit">
+      <created>1655962607195</created>
+      <option name="number" value="00001" />
+      <option name="presentableId" value="LOCAL-00001" />
+      <option name="project" value="LOCAL" />
+      <updated>1655962607195</updated>
+    </task>
+    <option name="localTasksCounter" value="2" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
@@ -157,4 +139,8 @@
       </map>
     </option>
   </component>
+  <component name="VcsManagerConfiguration">
+    <MESSAGE value="commit" />
+    <option name="LAST_COMMIT_MESSAGE" value="commit" />
+  </component>
 </project>

+ 113 - 12
app/api/controller/auction/AuctionController.php

@@ -71,28 +71,47 @@ class AuctionController
             return app('json')->fail('预约时间已过');
         }
         if (AuctionBooking::where([['uid', '=', $request->uid()], ['auction_id' , '=', $auction['id']], ['frequency', '=', $auction['frequency']]])->find()){
-            return app('json')->fail('当前场已预约');
+            return app('json')->fail('当前场已预约');
         }
 
         $userModel = new User();
         $user = $userModel->find($request->uid());
         if ($user['is_auth'] != 2) return app('json')->fail('未实名认证');
+        if ($user['shop_integral'] <= 0) return app('json')->fail('账户内没有购物券,无法进行预约');
         if ($user['anticipate'] < $auction['anticipate']) return app('json')->fail('广告值不足');
         $user['anticipate'] = $user['anticipate'] - $auction['anticipate'];// 扣除广告值
 
         User::rollbackTrans();
-        $res = $user->save();
+        $user->save();
+        $redis = new \Redis();
+        $redis->connect('127.0.0.1','6379'); // redis 缓存
+        $product = $redis->lPop($auction['id']);
+        if (!$product){
+            return app('json')->fail('商品已预约认购完,请等待下次');
+        }
+        $product = json_decode($product);
+        $res = AuctionOrder::create([
+            'uid' => $request->uid(),
+            'collection_id' => $product->uid,// 商品拥有有人
+            'order_id' => getNewOrderId(),
+            'name' => $product->name,
+            'product_id' => $product->id,
+            'auction_id' => $auction['id'],
+            'image'=> $product->image,
+            'price' => $product->hanging_price,
+            'frequency' => $auction['frequency']
+        ]);
 
         if ($res){
             AuctionBooking::booking($user['uid'], $auction);
-            UserBill::expend('预约场馆', $user['uid'], 'anticipate','reduce_anticipate', $auction['anticipate'], 0, $user['anticipate'], '预约扣除广告值'); // 写入记录
+            UserBill::expend('预约认购', $user['uid'], 'anticipate','reduce_anticipate', $auction['anticipate'], 0, $user['anticipate'], '预约扣除广告值'); // 写入记录
 
             User::commitTrans();
-            return app('json')->successful('预约成功');
+            return app('json')->successful('认购成功');
         }else{
 
             User::rollbackTrans();
-            return app('json')->fail('预约失败');
+            return app('json')->fail('认购失败');
         }
 
     }
@@ -176,7 +195,8 @@ class AuctionController
         $data = UtilService::getMore([
             ['uid'],
             ['anticipate'],
-            ['payment']
+            ['payment'],
+            ['type']
         ], $request);
         if (!$data['uid'] or !$data['anticipate'])  return app('json')->fail('数据传入错误');
         if (!$data['payment']) return app('json')->fail('请填写支付密码');
@@ -187,14 +207,50 @@ class AuctionController
         if ($user['payment'] != md5($data['payment'])) return app('json')->fail('支付密码错误');
         if (!in_array($data['uid'],$uid)) return app('json')->fail('该用户不是你下级');
         if ($data['anticipate'] < 10) return app('json')->fail('最少转账10');
-        if ($user['anticipate'] < $data['anticipate']) return app('json')->fail('广告值不够');
-        $me = User::find($data['uid']);
-        $user['anticipate'] = $user['anticipate'] - $data['anticipate'];// 扣除广告值
-        $me['anticipate'] = $me['anticipate'] + $data['anticipate'];// 增加广告值
+        if ($data['type'] == 1){
+            if ($user['anticipate'] < $data['anticipate']) return app('json')->fail('广告值不足');
+            $me = User::find($data['uid']);
+            $user['anticipate'] -= $data['anticipate'];// 扣除广告值
+            $me['anticipate'] +=  $data['anticipate'];// 增加广告值
+            $title = ['广告值减少', '广告值增加'];
+            $category = 'anticipate';
+            $type = ['zz_anticipate', 'js_anticipate'];
+            $mark = '广告值';
+        }elseif ($data['type'] == 2){
+            //趣豆
+            if ($user['integral'] < $data['anticipate']) return app('json')->fail('趣豆不足');
+            $me = User::find($data['uid']);
+            $user['integral'] -=  $data['anticipate'];// 扣除趣豆
+            $me['integral'] +=  $data['anticipate'];// 增加趣豆
+            $title = ['趣豆减少', '趣豆增加'];
+            $category = 'integral';
+            $type = ['zz_integral', 'js_integral'];
+            $mark = '趣豆';
+        }elseif ($data['type'] == 3){
+            //金豆
+            if ($user['golden_bean'] < $data['anticipate']) return app('json')->fail('金豆不足');
+            $me = User::find($data['uid']);
+            $user['golden_bean'] -=  $data['anticipate'];// 扣除金豆
+            $me['golden_bean'] +=  $data['anticipate'];// 增加金豆
+            $title = ['金豆减少', '金豆增加'];
+            $category = 'golden_bean';
+            $type = ['zz_golden_bean', 'js_golden_bean'];
+            $mark = '金豆';
+        }elseif ($data['type'] == 4){
+            //购物券
+            if ($user['shop_integral'] < $data['anticipate']) return app('json')->fail('金豆不足');
+            $me = User::find($data['uid']);
+            $user['shop_integral'] -=  $data['anticipate'];// 扣除购物券
+            $me['shop_integral'] +=  $data['anticipate'];// 增加购物券
+            $title = ['购物券减少', '购物券增加'];
+            $category = 'shop_integral';
+            $type = ['zz_shop_integral', 'js_shop_integral'];
+            $mark = '购物券';
+        }
         try {
             Db::startTrans();
-            UserBill::expend('广告值减少',$user['uid'], 'anticipate', 'reduce_anticipate', $data['anticipate'], 0, $user['anticipate'], '转账给('.$me['nickname'].'-'.$me['uid'].')'.$data['anticipate'].'广告值');
-            UserBill::income('广告值增加',$me['uid'], 'anticipate', 'add_anticipate', $data['anticipate'], 0, $me['anticipate'], '接收('.$user['nickname'].'-'.$user['uid'].')的'.$data['anticipate'].'广告值');
+            UserBill::expend($title[0],$user['uid'], $category, $type[0], $data['anticipate'], 0, $user['anticipate'], '转账给('.$me['nickname'].'-'.$me['uid'].')'.$data['anticipate'].$mark);
+            UserBill::income($title[1],$me['uid'], $category, $type[1], $data['anticipate'], 0, $me['anticipate'], '接收('.$user['nickname'].'-'.$user['uid'].')的'.$data['anticipate'].$mark);
             $user->save();
             $me->save();
 
@@ -458,6 +514,51 @@ class AuctionController
         return app('json')->success($datas);// 失败
     }
 
+    /**
+     * 金豆兑换
+     * @param Request $request
+     * @return mixed
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\DbException
+     * @throws \think\db\exception\ModelNotFoundException
+     */
+    public function exchange_golden(Request $request)
+    {
+        $data = UtilService::postMore([
+            ['price'],
+            ['type']
+        ], $request);
+        if (empty($data['price'])) return app('json')->fail('传入兑换数量');
+        if (empty($data['type'])) return app('json')->fail('传入兑换类型');
+
+        $user = User::where('uid', $request->uid())->find();
+        if ($data['type'] == 1){
+            // 金豆兑换广告值
+            $proportion = SystemConfigService::get('anticipate');
+            $price = $data['price'] * $proportion;
+            if ($user['golden_bean'] < $price) return app('json')->fail('金豆不足');
+            $user['golden_bean'] -= $price;
+            $user['anticipate'] += $data['price'];
+            $user->save();
+            UserBill::expend('金豆兑换广告值', $request->uid(), 'golden_bean', 'dh_golden_bean', $price, '', $user['golden_bean'], '金豆兑换'.$data['price'].'广告值');
+            UserBill::income('广告值兑换', $request->uid(), 'anticipate', 'dh_anticipate', $data['price'], '', $user['anticipate'], '金豆兑换'.$data['price'].'广告值');
+        }elseif ($data['type'] == 2) {
+            // 金豆兑换趣豆
+            $proportion = SystemConfigService::get('integral');
+            $price = $data['price'] * $proportion;
+            if ($user['golden_bean'] < $price) return app('json')->fail('金豆不足');
+            $user['golden_bean'] -= $price;
+            $user['integral'] += $data['price'];
+            $user->save();
+            UserBill::expend('金豆兑换趣豆', $request->uid(), 'golden_bean', 'dh_golden_bean', $price, '', $user['golden_bean'], '金豆兑换'.$data['price'].'趣豆');
+            UserBill::income('趣豆兑换', $request->uid(), 'integral', 'dh_integral', $data['price'], '', $user['integral'], '金豆兑换'.$data['price'].'趣豆');
+        }else{
+            return app('json')->fail('兑换类型不存在');
+        }
+
+        return app('json')->success('兑换成功');
+    }
+
 
 
 

+ 2 - 0
app/api/controller/auction/AuctionOrderController.php

@@ -103,6 +103,8 @@ class AuctionOrderController
 
         $order = AuctionOrder::where('order_id', $data['order_id'])->find();
         if (!$order) return app('json')->fail('订单不存在');
+        $auction = Auction::where('id', $order['auction_id'])->find();
+        if (strtotime($auction['radd_time']) > time() or strtotime($auction['rend_time']) < time()) return app('json')->fail('未到支付时间,支付时间为'.$auction['radd_time'].'-'.$auction['rend_time']);
         $order['upload_image'] = $data['image'];
         $order['status'] = 2;
         $order['voucher_time'] = time();

+ 3 - 1
app/api/controller/auction/AuctionProductController.php

@@ -197,6 +197,8 @@ class AuctionProductController
 
         $order = AuctionOrder::where('id', $data['id'])->find();
         if (!$order) return app('json')->fail('订单不存在');
+        $auction = Auction::where('id', $order['auction_id'])->find();
+        if (strtotime($auction['radd_time']) > time() or strtotime($auction['rend_time']) < time()) return app('json')->fail('没到支付时间,支付时间为'.$auction['radd_time'].'-'.$auction['rend_time']);
         if ($order['status'] != 1)  return app('json')->fail('当前订单状态无法上传凭证');
         $order['upload_image'] = $data['image'];
         $order['status'] = 2;
@@ -260,7 +262,7 @@ class AuctionProductController
                     AuctionOrder::earn($uid,$order['price'] ,$product); // 卖家
                 }
             }
-            AuctionOrder::return($order['id']); // 买家
+            AuctionOrder::return($order); // 买家
             AuctionOrder::commitTrans();
             return app('json')->successful('完成');
         }else{

+ 1 - 1
app/http/middleware/AllowOriginMiddleware.php

@@ -62,7 +62,7 @@ class AllowOriginMiddleware implements MiddlewareInterface
         $request->filter(['htmlspecialchars', 'strip_tags', 'addslashes', 'trim']);
         Auction::frequency(); // 更新场次
         AuctionProduct::off_the_shelf(); // 下架未出售商品
-
+        AuctionOrder::auction_time();
         try {
             Db::startTrans();
             AuctionOrder::deduction();//订单一个小时内未上传扣除广告值

+ 19 - 32
app/models/auction/AuctionOrder.php

@@ -212,9 +212,9 @@ class AuctionOrder extends BaseModel
      * @throws \think\db\exception\DbException
      * @throws \think\db\exception\ModelNotFoundException
      */
-    public static function return($id)
+    public static function return($order)
     {
-        $data = self::find($id);
+        $data = self::find($order['id']);
         $userModel = new User();
         $productModel = new AuctionProduct();
         $auctionModel = new Auction();
@@ -227,18 +227,11 @@ class AuctionOrder extends BaseModel
 
             if ($user['spread_uid']) {
                 $spread = $userModel->where('uid', $user['spread_uid'])->find();
-                if ($spread['green_time'] != strtotime(date('Y-m-d', strtotime('+1 day')))) {
-                    $spread['green_time'] = strtotime(date('Y-m-d', strtotime('+1 day'))); // 开启明天的绿色通道
-                    $spread->save();
-                }
-
+                $proportion = SystemConfigService::get('golden_bean')/100;
+                $spread['golden_bean'] += $order['price'] * $proportion;
+                $spread->save();
+                \app\models\user\UserBill::income('直推奖励金豆', $spread['uid'], 'golden_bean', 'ztjl_golden_bean', $order['price'] * $proportion, '', $spread['golden_bean'], '直推奖励金豆');
             }
-            $orderCount = AuctionOrder::where([['uid', '=', $user['uid']], ['status', '=', 3]])->count();
-            if ($orderCount >= 5) {
-                $user['is_new'] = 0;
-            }
-
-
         }
         $product = $productModel->where('id', $data['product_id'])->find();
         $auction = $auctionModel->where('id', $product['auction_id'])->find();
@@ -420,8 +413,7 @@ class AuctionOrder extends BaseModel
         $auction = Auction::where('status', 1)->select();
         if ($auction){
             foreach ($auction as $item){
-                $addtime = strtotime($item['radd_time']);
-                $rendtime = strtotime($item['rend_time']);
+                $addtime = strtotime($item['add_time']);
                 if (($addtime-360) < time() and $addtime > time()){
                     $model = AuctionProduct::where('is_show', 1)->where('auction_id', $item['id'])->order('id DESC');
                     $list = $model->select();
@@ -431,31 +423,26 @@ class AuctionOrder extends BaseModel
                         foreach ($list as $k => $v) {
                             $order = AuctionOrder::where('product_id', $v['id'])->where('status', '>', 0)->where('frequency', $item['frequency'])->find();
                             if ($order){
-                                $list[$k]['status'] = 2;// 已被购买
-                                $list[$k]['str'] = '已卖完';
+                                unset($list[$k]);
                             }else{
-                                $list[$k]['status'] = 1;// 能购买
-                                $list[$k]['str'] = '购买';
-                            }
-                            if ($v['is_admin'] == 2){
-                                $time = AuctionTime::where([['auction_id', '=', $item['id']], ['product_id', '=', $v['id']], ['add_time', '=', strtotime(date('Y-m-d', time()))]])->find();
-                                if (!$time){
-                                    unset($list[$k]);
-                                } else{
+                                if ($v['is_admin'] == 2){
+                                    $time = AuctionTime::where([['auction_id', '=', $item['id']], ['product_id', '=', $v['id']], ['add_time', '=', strtotime(date('Y-m-d', time()))]])->find();
+                                    if (!$time){
+                                        unset($list[$k]);
+                                    } else{
+                                        $lists[] = $list[$k];
+                                    }
+                                }else{
                                     $lists[] = $list[$k];
                                 }
-                            }else{
-                                $lists[] = $list[$k];
                             }
                         }
                     }
                     $redis = new \Redis();
                     $redis->connect('127.0.0.1','6379', 3600);
-                    foreach ($lists as $k => $v) {
-                        if ($v['status'] == 1) {
-                            if (!$redis->llen($v['id']) > 0) {
-                                $redis->lPush($v['id'], json_encode($v));
-                            }
+                    if ($redis->llen($item['id']) == 0) {
+                        foreach ($lists as $k => $v) {
+                            $redis->lPush($item['id'], json_encode($v));
                         }
                     }
                 }

+ 1 - 0
route/api/route.php

@@ -200,6 +200,7 @@ Route::group(function () {
     Route::get('is_pas', 'user.UserController/is_pas')->name('is_pas');// 是否设定支付密码
     Route::post('set_payment', 'user.UserController/set_payment')->name('set_payment');// 支付密码
     Route::post('edit_voucher', 'auction.AuctionOrderController/edit_voucher')->name('edit_voucher');// 修改支付凭证
+    Route::post('exchange_golden', 'auction.AuctionController/exchange_golden')->name('exchange_golden');// 金豆兑换
 
 })->middleware(\app\http\middleware\AllowOriginMiddleware::class)->middleware(\app\http\middleware\AuthTokenMiddleware::class, true);
 //未授权接口

+ 1 - 1
runtime/cache/a9/939d920c0fa6b4fe0b897fb019672a.php

@@ -1,4 +1,4 @@
 <?php
 //000000000000
  exit();?>
-a:9:{i:0;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\48\e345b986ae9584f9686dac64ea2c6a.php";i:1;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\59\62ccd748530d5866ded674e0247788.php";i:2;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\4d\ebc178cbdb9b7d1fc736ef8ee65e51.php";i:3;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\b6\2c1e2a759fad26f36b6705aeb096e7.php";i:4;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\3a\18e85fda2f43f200f015f30d0af45e.php";i:5;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\a7\53d3226685fd31b029614775beb88c.php";i:6;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\57\e5830fa228be4a7d40bf40abfb7a18.php";i:7;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\e0\f15cee86afad4eabb0d5176f63c302.php";i:8;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\a6\d6181cf79cbad4a232ed9006617c00.php";}
+a:10:{i:0;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\48\e345b986ae9584f9686dac64ea2c6a.php";i:1;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\59\62ccd748530d5866ded674e0247788.php";i:2;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\4d\ebc178cbdb9b7d1fc736ef8ee65e51.php";i:3;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\b6\2c1e2a759fad26f36b6705aeb096e7.php";i:4;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\3a\18e85fda2f43f200f015f30d0af45e.php";i:5;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\a7\53d3226685fd31b029614775beb88c.php";i:6;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\57\e5830fa228be4a7d40bf40abfb7a18.php";i:7;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\e0\f15cee86afad4eabb0d5176f63c302.php";i:8;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\a6\d6181cf79cbad4a232ed9006617c00.php";i:9;s:80:"D:\phpstudy_pro\WWW\newQudou\runtime\cache\2b\8b07b35c908c382a8aae9b52863147.php";}