任务
This commit is contained in:
@@ -322,6 +322,12 @@ class RoomAuction extends Model
|
||||
if($room_auction['code'] != 1){
|
||||
return ['code' => 0, 'msg'=>$room_auction['msg'], 'data'=>$room_auction['data']];
|
||||
}
|
||||
//查询是否第一次被拍卖成功
|
||||
$is_first = db::name('vs_room_auction')->where(['user_id' => $res['user_id'],'status' => 3,'bidder_user_id' =>['>',0]])->count();
|
||||
if($is_first == 1){
|
||||
//任务:9-第一次拍卖关系
|
||||
model('Tasks')->tasks_complete($res['user_id'],9);
|
||||
}
|
||||
}
|
||||
//拍卖位下麦
|
||||
$host = db::name('vs_room')->where(['id' => $res['room_id']])->value('user_id');
|
||||
|
||||
Reference in New Issue
Block a user