mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-24 18:36:15 +08:00
Update UserBalance.php
This commit is contained in:
parent
90c90acb8e
commit
315343a587
@ -76,8 +76,8 @@ class UserBalance extends Controller
|
|||||||
$data['code'] = CodeExtend::uniqidDate('16', 'B');
|
$data['code'] = CodeExtend::uniqidDate('16', 'B');
|
||||||
}
|
}
|
||||||
if ($this->request->isPost()) {
|
if ($this->request->isPost()) {
|
||||||
if (empty($data['amount'])) $this->error('充值金额不能为零');
|
|
||||||
$data['create_by'] = AdminService::instance()->getUserId();
|
$data['create_by'] = AdminService::instance()->getUserId();
|
||||||
|
if (empty(floatval($data['amount']))) $this->error('充值金额不能为零');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user