修改余额

This commit is contained in:
邹景立 2021-02-23 15:24:50 +08:00
parent f0bdaf1a50
commit 3bfb86076b
2 changed files with 2 additions and 4 deletions

View File

@ -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
View File

@ -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',