酒吧房加测试代码判断

This commit is contained in:
2026-01-16 09:00:55 +08:00
parent 54abef6b56
commit 9bec4ef093
4 changed files with 10 additions and 3 deletions

View File

@@ -56,9 +56,9 @@ class Tasks extends Model
public function dailyTasksList($user_id=''){
$reslut = [];
//用户今日充值金币数量
$user_gold = Db::name('vs_user_money_log')->where(['user_id'=>$user_id,'change_type'=>2,'money_type'=>1])
$user_gold = Db::name('user_coin_log')->where(['user_id'=>$user_id,'change_type'=>2])
->whereTime('createtime', 'today')
->sum('change_value');
->sum('coin');
$reslut['user_gold'] = $user_gold ? $user_gold : 0;
//礼盒列表
$gift_box = Db::name('vs_gift_bag')->where('status',1)->where('activities_id',2)->select();