mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-25 02:53:56 +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');
|
$data['code'] = CodeExtend::uniqidDate('16', 'B');
|
||||||
}
|
}
|
||||||
if ($this->request->isPost()) {
|
if ($this->request->isPost()) {
|
||||||
if ($data['amount'] <= 0) {
|
if (empty($data['amount'])) $this->error('充值金额不能为零');
|
||||||
$this->error('充值金额不能少于零');
|
|
||||||
}
|
|
||||||
$data['create_by'] = AdminService::instance()->getUserId();
|
$data['create_by'] = AdminService::instance()->getUserId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?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);
|
declare (strict_types = 1);
|
||||||
return array (
|
return array (
|
||||||
0 => 'think\\admin\\Library',
|
0 => 'think\\admin\\Library',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user