酒吧房:->相关接口提交-bug修改
This commit is contained in:
@@ -968,8 +968,13 @@ class Test
|
||||
|
||||
//任务金币统计
|
||||
public function task_coin_count(){
|
||||
$stime = "1766937600";
|
||||
$etime = "1767542400";
|
||||
// $etime = "2025-12-29 10:30:00";
|
||||
// $stime = "2025-12-29 00:00:00";
|
||||
// $etime = "2025-12-30 04:00:00";
|
||||
$stime = "2025-12-29 00:00:00";
|
||||
$etime = "2026-01-05 00:00:00";
|
||||
// $stime = "2025-12-22 00:00:00";
|
||||
// $etime = "2025-12-29 00:00:00";
|
||||
//获取所有已领取的任务奖励礼包
|
||||
$where = [];
|
||||
if(!empty($stime)){
|
||||
@@ -981,14 +986,13 @@ class Test
|
||||
if(!empty($stime) && !empty($etime)){
|
||||
$where['a.createtime'] = ['between', [strtotime($stime), strtotime($etime)]];
|
||||
}
|
||||
if(!empty($stime) && !empty($etime) && $etime<="1767038400"){//2025-12-30 04:00:00
|
||||
if(!empty($etime) && strtotime($etime)<="1767038400"){//2025-12-30 04:00:00
|
||||
$tasks_bag_details = db::name('vs_gift_bag_receive_log')
|
||||
->alias('a')
|
||||
->join('vs_gift_bag_detail b', 'a.parent_id=b.id')
|
||||
->field('a.createtime,b.type,b.foreign_id,b.quantity,b.gold')
|
||||
->where(['b.type'=>['in', [1,2]]])
|
||||
->where('a.gift_bag_id','>=',18)
|
||||
->where('a.gift_bag_id','<=',51)
|
||||
->whereBetween('a.gift_bag_id', [18, 51])
|
||||
->where($where)
|
||||
->select();
|
||||
}else{
|
||||
@@ -997,9 +1001,7 @@ class Test
|
||||
->join('vs_gift_bag_detail b', 'a.parent_id=b.id')
|
||||
->field('a.createtime,b.type,b.foreign_id,b.quantity,b.gold')
|
||||
->where(['b.type'=>['in', [1,2]]])
|
||||
// ->where(['b.type'=>1])
|
||||
->where('a.gift_bag_id','>=',18)
|
||||
->where('a.gift_bag_id','<=',51)
|
||||
->whereBetween('a.gift_bag_id', [18, 51])
|
||||
->where($where)
|
||||
->select();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user