|
|
@@ -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) {
|