盲盒转盘-岁月之城,时空之旅,抽奖结果转落包。

This commit is contained in:
2025-12-19 18:40:29 +08:00
parent 1c2b981649
commit cd69ab6b73
6 changed files with 391 additions and 18 deletions

View File

@@ -158,12 +158,14 @@ class User extends adminApi
$total_coin = db::name('user')->alias('a')
->join('(SELECT * FROM fa_user_auth WHERE id IN (SELECT MAX(id) FROM fa_user_auth GROUP BY mobile)) b', 'a.mobile = b.mobile', 'LEFT')
->join('user_wallet c', 'a.id = c.user_id','LEFT')
->where(['a.delete_time'=>0])
->where($where)
->field($field)
->sum('c.coin');
$total_earnings = db::name('user')->alias('a')
->join('(SELECT * FROM fa_user_auth WHERE id IN (SELECT MAX(id) FROM fa_user_auth GROUP BY mobile)) b', 'a.mobile = b.mobile', 'LEFT')
->join('user_wallet c', 'a.id = c.user_id','LEFT')
->where(['a.delete_time'=>0])
->where($where)
->field($field)
->sum('c.earnings');