mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改会员等级配置
This commit is contained in:
parent
5fd567cd63
commit
391b1b0727
@ -78,7 +78,9 @@ class Upgrade extends Controller
|
|||||||
{
|
{
|
||||||
if ($this->request->isGet()) {
|
if ($this->request->isGet()) {
|
||||||
$this->prizes = RebateService::PRIZES;
|
$this->prizes = RebateService::PRIZES;
|
||||||
$vo['number'] = $vo['number'] ?? $this->app->db->name($this->table)->max('number') + 1;
|
if (!isset($vo['number'])) {
|
||||||
|
$vo['number'] = $this->app->db->name($this->table)->order('number desc')->value('number', -1) + 1;
|
||||||
|
}
|
||||||
$vo['rebate_rule'] = str2arr($vo['rebate_rule'] ?? '');
|
$vo['rebate_rule'] = str2arr($vo['rebate_rule'] ?? '');
|
||||||
} else {
|
} else {
|
||||||
$vo['utime'] = time();
|
$vo['utime'] = time();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user