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