任务功能提交-情侣任务
This commit is contained in:
@@ -228,13 +228,24 @@ class Test
|
||||
if(!empty($give_gift)){
|
||||
model('Tasks')->tasks_complete($value['id'],8);
|
||||
}
|
||||
|
||||
}elseif($v['id']==9){//第一次拍卖关系
|
||||
|
||||
$auction = db::name('vs_room_auction')->where(['user_id' => $value['id'],'bidder_user_id'=>['>',0]])->find();
|
||||
if(!empty($auction)){
|
||||
model('Tasks')->tasks_complete($value['id'],9);
|
||||
}
|
||||
}elseif($v['id']==10){//第一次星球房卡关系(互娱房)
|
||||
|
||||
$friending1 = db::name('vs_user_friending_heart')->where(['user1_id' => $value['id'],'status'=>3])->find();
|
||||
if(empty($friending1)){
|
||||
$friending1 = db::name('vs_user_friending_heart')->where(['user2_id' => $value['id'],'status'=>3])->find();
|
||||
}
|
||||
if(!empty($friending1)){
|
||||
model('Tasks')->tasks_complete($value['id'],10);
|
||||
}
|
||||
}elseif($v['id']==11){//第一次 加入公会
|
||||
|
||||
$guild_list = db::name('vs_guild_user')->where(['user_id' => $value['id']])->find();
|
||||
if(!empty($guild_list)){
|
||||
model('Tasks')->tasks_complete($value['id'],11);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user