diff --git a/app/data/controller/user/Balance.php b/app/data/controller/user/Balance.php index 17f9adef4..fb28f5e6a 100644 --- a/app/data/controller/user/Balance.php +++ b/app/data/controller/user/Balance.php @@ -57,7 +57,7 @@ class Balance extends Controller $users = $this->app->db->name('SystemUser')->whereIn('id', $uids)->column('username', 'id'); $this->upgrades = UserUpgradeService::instance()->levels(); foreach ($data as &$vo) { - $vo['vip_upgradeinfo'] = $this->upgrades[$vo['vip_upgrade']] ?? []; + $vo['upgradeinfo'] = $this->upgrades[$vo['upgrade']] ?? []; $vo['create_byname'] = $users[$vo['create_by']] ?? ''; } } @@ -91,7 +91,7 @@ class Balance extends Controller } if ($this->request->isPost()) { $data['create_by'] = AdminService::instance()->getUserId(); - if (empty(floatval($data['amount'])) && empty($data['vip_upgrade'])) { + if (empty(floatval($data['amount'])) && empty($data['upgrade'])) { $this->error('金额为零并且没有升级行为!'); } } diff --git a/app/data/view/user/balance/index.html b/app/data/view/user/balance/index.html index 783813974..6d169d072 100644 --- a/app/data/view/user/balance/index.html +++ b/app/data/view/user/balance/index.html @@ -42,7 +42,7 @@