bug 修改

This commit is contained in:
2026-01-16 09:07:31 +08:00
parent 9bec4ef093
commit b0b6ef72a5
10 changed files with 32 additions and 112 deletions

View File

@@ -56,7 +56,7 @@ class Tasks extends Model
public function dailyTasksList($user_id=''){
$reslut = [];
//用户今日充值金币数量
$user_gold = Db::name('user_coin_log')->where(['user_id'=>$user_id,'change_type'=>2])
$user_gold = Db::name('user_coin_log')->where(['user_id'=>$user_id,'change_type'=>2])
->whereTime('createtime', 'today')
->sum('coin');
$reslut['user_gold'] = $user_gold ? $user_gold : 0;