mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
优化用户等级处理
This commit is contained in:
parent
7585090613
commit
6e83bd3610
@ -79,6 +79,9 @@ class UserUpgrade extends Controller
|
||||
if ($this->request->isGet()) {
|
||||
$this->prizes = RebateService::PRIZES;
|
||||
$vo['rebate_rule'] = str2arr($vo['rebate_rule'] ?? '');
|
||||
if (empty($vo['number'])) {
|
||||
$vo['number'] = $this->app->db->name($this->table)->max('number') + 1;
|
||||
}
|
||||
} else {
|
||||
$vo['utime'] = time();
|
||||
$vo['rebate_rule'] = arr2str($vo['rebate_rule'] ?? []);
|
||||
|
Loading…
x
Reference in New Issue
Block a user