师徒任务
This commit is contained in:
@@ -1029,10 +1029,10 @@ class GiveGift extends Model
|
||||
//查询今天是否送过礼物了
|
||||
$is_today_gift = db::name('vs_give_gift')
|
||||
->where(['user_id'=>$uid,'gift_user'=>$to_id,'createtime' => ['>=',strtotime(date('Y-m-d'))],'gift_id' => ['in',$special_gift]])->count();
|
||||
// if($is_today_gift <= 2){
|
||||
if($is_today_gift <= 1){
|
||||
//任务:13-每日收到至少3个徒弟的特殊徐礼物
|
||||
model('Tasks')->tasks_complete($to_id,13);
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
//收礼人是否是送礼人的徒弟
|
||||
|
||||
Reference in New Issue
Block a user