任务功能提交-测试-bug修改

This commit is contained in:
2025-12-13 00:37:51 +08:00
parent 2b4b3509e8
commit 0937ceac6b
3 changed files with 16 additions and 2 deletions

View File

@@ -94,4 +94,10 @@ class Cron
$cron = new \app\cron\controller\RoomHourRanking();
$cron->index();
}
//临时
public function teset(){
$cron = new \app\cron\controller\Test();
$cron->index();
}
}

View File

@@ -777,6 +777,12 @@ class Tasks extends Model
* 今日签到状态
*/
public function daily_tasks_sign_in_status($user_id){
$task_info = Db::name('vs_tasks')->where('id',1)->where('delete_time',0)->where('is_active',1)->find();
if(empty($task_info)){
$result['status'] = 1;
$result['status_str'] = "已签到";
return ['code' => 1, 'msg' => '成功','data' => $result];
}
$sign_in_info = Db::name('vs_user_tasks_sign_in')->where(['user_id'=>$user_id,'sign_in_date'=>date('Y-m-d')])->find();
$result = [];
if ($sign_in_info) {

View File

@@ -21,8 +21,10 @@ class Test
set_time_limit(0);
echo "统计盲盒转盘错误数据\n";
// $this->blind_box_error();
$this->xlh_gift_send();
echo "\n";
// $this->xlh_gift_send();
// echo "\n";
//
$this->task_history_send();
}