作者 jiawen
1 个管道 的构建 通过 耗费 0 秒

提现不足两元给错误提示

@@ -368,8 +368,7 @@ class UserController extends RestBaseController @@ -368,8 +368,7 @@ class UserController extends RestBaseController
368 'card_id' => $data['id'], 368 'card_id' => $data['id'],
369 'user_id' => $this->userId 369 'user_id' => $this->userId
370 ]; 370 ];
371 - $balance =Db::name('money_log')->where($condition)->field('money')->find();  
372 - if ($balance < 2) { 371 + if ($data['money'] < 2) {
373 $this->error(['code'=>'40013','msg'=>'余额不足2元']); 372 $this->error(['code'=>'40013','msg'=>'余额不足2元']);
374 } 373 }
375 $arr = [ 374 $arr = [