优化:钱包表更换。

This commit is contained in:
2026-01-12 14:58:35 +08:00
parent bc0f052359
commit b22c9af6a6
7 changed files with 30 additions and 18 deletions

View File

@@ -32,7 +32,8 @@ class AppTodayStatistical
$time = strtotime(date('Y-m-d'));
$stime = strtotime(date('Y-m-d'));
$etime = strtotime(date('Y-m-d 23:59:59'));
$user_list = Db::name('user_wallet')->select();
// $user_list = Db::name('user_wallet')->select();
$user_list = db::name('user_wallet_coin')->select();
foreach ($user_list as $k=>$v){
$gift_pack = Db::name('vs_user_gift_pack')->field('gid,num')->where(['user_id'=>$v['user_id'],'is_tester'=>1])->select();
$gift_pack_price = 0;
@@ -71,7 +72,7 @@ class AppTodayStatistical
$data = [
'user_id'=>$v['user_id']??0,
'coin'=>$v['coin']??0,
'earnings'=>$v['earnings']??0,
'earnings'=> db::name('user_wallet_earnings')->where('user_id', $v['user_id'])->value('earnings')??0,
'gift_pack_price'=>$gift_pack_price??0,
'room_flow_price'=>$transaction??0,
'guild_flow_price'=>$guild_flow_price??0,