添加:用户信息添加封坛酒额度和加油卡额度输出

This commit is contained in:
wuhui_zzw 2024-03-15 18:35:37 +08:00
parent a3daf45832
commit 5ae9a67e28
1 changed files with 8 additions and 0 deletions

View File

@ -181,6 +181,14 @@ class Auth extends BaseController
->searchModel(['uid'=>$user->uid,'quota_type'=>2])
->value('(surplus_quota - freeze_quota)');
$data['wine_available'] = (float)app()->make(ExchangeQuotaRepository::class)
->searchModel(['uid'=>$user->uid,'quota_type'=>3])
->value('(surplus_quota - freeze_quota)');
$data['oil_available'] = (float)app()->make(ExchangeQuotaRepository::class)
->searchModel(['uid'=>$user->uid,'quota_type'=>4])
->value('(surplus_quota - freeze_quota)');
return app('json')->success($data);
}