房间流水统计
This commit is contained in:
@@ -561,7 +561,7 @@ class Room extends Model
|
|||||||
}else{
|
}else{
|
||||||
$total_earning = db::name('user_earnings_log')
|
$total_earning = db::name('user_earnings_log')
|
||||||
->where(['user_id' => $userId,'room_id' => $room_id,'change_type' => 19])
|
->where(['user_id' => $userId,'room_id' => $room_id,'change_type' => 19])
|
||||||
->where('createtime', 'between', [strtotime($stime), $end_time])
|
->where(['createtime' => ['between', [strtotime($stime), $end_time]]])
|
||||||
->sum('earnings');
|
->sum('earnings');
|
||||||
}
|
}
|
||||||
return ['code' => 1, 'msg' => '成功', 'data' => ['total_amount' => $total_amount, 'total_earning' => $total_earning,'list' => $list_data_array]];
|
return ['code' => 1, 'msg' => '成功', 'data' => ['total_amount' => $total_amount, 'total_earning' => $total_earning,'list' => $list_data_array]];
|
||||||
|
|||||||
Reference in New Issue
Block a user