diff --git a/app/data/controller/user/Balance.php b/app/data/controller/user/Balance.php index 31c2aaacf..971c7ba2f 100644 --- a/app/data/controller/user/Balance.php +++ b/app/data/controller/user/Balance.php @@ -126,7 +126,7 @@ class Balance extends Controller { if ($state) { $map = [['id', 'in', str2arr(input('id', ''))]]; - foreach ($this->app->db->name($this->table)->where($map)->cursor() as $vo) { + foreach (DataUserBalance::mk()->where($map)->cursor() as $vo) { UserBalanceService::instance()->amount($vo['uuid']); UserUpgradeService::instance()->upgrade($vo['uuid']); }