one_after 2 tháng trước cách đây
mục cha
commit
04f0a6956b
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      app/controller/WithdrawController.php

+ 3 - 3
app/controller/WithdrawController.php

@@ -223,8 +223,8 @@ class WithdrawController
         Db::beginTransaction();
         try {
             Validator::input($param, [
-                'name' => Validator::notEmpty()->setName('姓名'),
-                'id'   => Validator::notEmpty()->setName('id'),
+                'name'     => Validator::notEmpty()->setName('姓名'),
+                'goods_id' => Validator::notEmpty()->setName('id'),
             ]);
             if (!empty(Redis::get('1212' . $request->user_data['id']))) {
                 throw new \Exception('请不要连续操作');
@@ -232,7 +232,7 @@ class WithdrawController
             Redis::setEx('1212' . $request->user_data['id'], 10, $request->user_data['id']);
 
             $mygoodslist = Db::table('wa_my_goods')
-                ->where('id', $param['id'])
+                ->where('id', $param['goods_id'])
                 ->first();
             if (!empty($mygoodslist)) {
                 if ($mygoodslist->balance < 2000000) {