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