mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改余额
This commit is contained in:
parent
f0bdaf1a50
commit
3bfb86076b
@ -76,9 +76,7 @@ class UserBalance extends Controller
|
||||
$data['code'] = CodeExtend::uniqidDate('16', 'B');
|
||||
}
|
||||
if ($this->request->isPost()) {
|
||||
if ($data['amount'] <= 0) {
|
||||
$this->error('充值金额不能少于零');
|
||||
}
|
||||
if (empty($data['amount'])) $this->error('充值金额不能为零');
|
||||
$data['create_by'] = AdminService::instance()->getUserId();
|
||||
}
|
||||
}
|
||||
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
// This file is automatically generated at:2021-02-23 09:58:44
|
||||
// This file is automatically generated at:2021-02-23 15:11:03
|
||||
declare (strict_types = 1);
|
||||
return array (
|
||||
0 => 'think\\admin\\Library',
|
||||
|
Loading…
x
Reference in New Issue
Block a user