mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +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');
|
||||
}
|
||||
if ($this->request->isPost()) {
|
||||
if (empty($data['amount'])) $this->error('充值金额不能为零');
|
||||
$data['create_by'] = AdminService::instance()->getUserId();
|
||||
if (empty(floatval($data['amount']))) $this->error('充值金额不能为零');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user