添加:用户信息添加封坛酒额度和加油卡额度输出
This commit is contained in:
parent
a3daf45832
commit
5ae9a67e28
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue