update app/data/controller/user/Balance.php.

This commit is contained in:
Anyon 2021-11-03 13:10:20 +00:00 committed by Gitee
parent f94dad1524
commit 60bbd9545f

View File

@ -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']);
}