pk room_id 重置修改。
This commit is contained in:
@@ -79,8 +79,8 @@ class BlindBoxTurntableGift extends Model
|
|||||||
if(!$blind_box_turntable){
|
if(!$blind_box_turntable){
|
||||||
return ['code' => 1, 'msg' => '成功', 'data' => null];
|
return ['code' => 1, 'msg' => '成功', 'data' => null];
|
||||||
}
|
}
|
||||||
$room_id = $blind_box_turntable['room_id'];
|
|
||||||
$blind_box_turntable_log = db('vs_blind_box_turntable_results_log')->where(['tid'=>$send_id])->select();
|
$blind_box_turntable_log = db('vs_blind_box_turntable_results_log')->where(['tid'=>$send_id])->select();
|
||||||
|
$room_id = $blind_box_turntable_log['gift_user_room_id'];
|
||||||
if(!$blind_box_turntable_log){
|
if(!$blind_box_turntable_log){
|
||||||
return ['code' => 0, 'msg' => '数据不存在','data' => null];
|
return ['code' => 0, 'msg' => '数据不存在','data' => null];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -896,6 +896,7 @@ class BlindBoxTurntableGiftDrawWorldNew extends Model
|
|||||||
$batchInsertData[] = [
|
$batchInsertData[] = [
|
||||||
'tid' => $boxTurntableLog,
|
'tid' => $boxTurntableLog,
|
||||||
'gift_user_id' => $userGift['gift_user_id'],
|
'gift_user_id' => $userGift['gift_user_id'],
|
||||||
|
'gift_user_room_id' => db::name('vs_room_visitor')->where(['user_id'=>$userGift['gift_user_id']])->order('id desc')->value('room_id') ?? 0,
|
||||||
'gift_id' => $userGift['gift_id'],
|
'gift_id' => $userGift['gift_id'],
|
||||||
'count' => $userGift['count'],
|
'count' => $userGift['count'],
|
||||||
'gift_price' => $userGift['gift_price'],
|
'gift_price' => $userGift['gift_price'],
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class RoomPan
|
|||||||
echo $v['id']." 没有需要发放的礼物 \n";
|
echo $v['id']." 没有需要发放的礼物 \n";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$room_id = $v['room_id'];
|
$room_id = $blind_box_turntable_results_log['gift_user_room_id'];
|
||||||
$room_name = Db::name('vs_room')->where(['id' => $room_id, 'apply_status' => 2])->value('room_name');
|
$room_name = Db::name('vs_room')->where(['id' => $room_id, 'apply_status' => 2])->value('room_name');
|
||||||
$FromUserInfo = Db::name('user')->where(['id'=>$v['user_id']])->find();
|
$FromUserInfo = Db::name('user')->where(['id'=>$v['user_id']])->find();
|
||||||
$FromUserInfo['user_id'] = $FromUserInfo['id'];
|
$FromUserInfo['user_id'] = $FromUserInfo['id'];
|
||||||
|
|||||||
Reference in New Issue
Block a user