巡乐会抽奖接口提交.-联调调试
This commit is contained in:
@@ -290,7 +290,7 @@ class BlindBoxTurntableGift extends Model
|
|||||||
'room_id' => $room_id,
|
'room_id' => $room_id,
|
||||||
'gift_id' => $xlh_ext['locking_condition']['locking_gift_id'],
|
'gift_id' => $xlh_ext['locking_condition']['locking_gift_id'],
|
||||||
'homeowner_gift_id' => $xlh_ext['locking_condition']['give_homeowner_gift_id'],
|
'homeowner_gift_id' => $xlh_ext['locking_condition']['give_homeowner_gift_id'],
|
||||||
'periods' => $room['blind_box_turntable_periods'],
|
'periods' => $room['xlh_periods']+1,
|
||||||
'num' => 0,
|
'num' => 0,
|
||||||
'createtime' => time()
|
'createtime' => time()
|
||||||
]);
|
]);
|
||||||
@@ -298,6 +298,7 @@ class BlindBoxTurntableGift extends Model
|
|||||||
return ['code' => 0, 'msg' => '失败!', 'data' => []];
|
return ['code' => 0, 'msg' => '失败!', 'data' => []];
|
||||||
}
|
}
|
||||||
db::name("vs_room")->where('id',$room_id)->setInc('xlh_periods');
|
db::name("vs_room")->where('id',$room_id)->setInc('xlh_periods');
|
||||||
|
db::name("vs_room")->where('id',$room_id)->setInc('xlh_periods_num');
|
||||||
}else{
|
}else{
|
||||||
db::name("vs_room")->where('id',$room_id)->setInc('xlh_periods_num');
|
db::name("vs_room")->where('id',$room_id)->setInc('xlh_periods_num');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user