任务功能提交。

This commit is contained in:
2025-12-11 10:03:37 +08:00
parent b21bc68610
commit 1a01ec66e5

View File

@@ -177,21 +177,19 @@ class Tasks extends Model
$v['jump_type_str'] = $this->jump_type[$v['jump_type']];
$v['from_id'] = 0;
$v['is_time'] = 0;
if(in_array($v['task_id'],[8,9])){
if(in_array($v['task_id'],[18,19,20])){
$v['processing_type'] = 2;
$v['processing_type_str'] = $this->processing_type_str[$v['processing_type']];
//跳转的房间路径
$v['from_id'] = db::name('vs_room')->where(['delete_time'=>0,'room_status'=>1,'type_id'=>['<>',6],'apply_status'=>2])->orderRaw('rand()')->value('id');
$v['target_quantity'] = $v['target_quantity'] * 60;
$v['is_time'] = 1;
}elseif(in_array($v['task_id'],[10])){
$v['processing_type'] = 7;
$v['processing_type_str'] = $this->processing_type_str[$v['processing_type']];
$v['from_id'] = db::name('vs_room')->where(['delete_time'=>0,'room_status'=>1,'type_id'=>['<>',6],'apply_status'=>2])->orderRaw('rand()')->value('id');
} else{
$v['processing_type'] = 9;
$v['processing_type_str'] = $this->processing_type_str[$v['processing_type']];
}
//奖励详情
$v['reward_str'] = "25金币笨笨狗x1,仙女之星头像框,三八大杠";
//返回任务列表
$reslut['tasks'][$v['task_type']-1]['task_list'][] = $v;
}