巡乐会抽奖接口提交.-错误调试
This commit is contained in:
@@ -162,20 +162,17 @@ class BlindBoxTurntableGift extends Model
|
|||||||
'all_gift_price' => $value['gift_price'] * $value['count'],
|
'all_gift_price' => $value['gift_price'] * $value['count'],
|
||||||
'createtime' => time()
|
'createtime' => time()
|
||||||
]);
|
]);
|
||||||
if($is_xlh ==1){
|
|
||||||
//推送
|
|
||||||
$FromUserInfoNickname = db::name('user')->where(['id'=>$user_id])->value('nickname');
|
|
||||||
$ToUserInfoNickname = db::name('user')->where(['id'=>$value['gift_user_id']])->value('nickname');
|
|
||||||
$gift_name = db::name('vs_gift')->where(['id'=>$value['gift_id']])->value('gift_name');
|
|
||||||
$text_str = $FromUserInfoNickname . ' 送给 ' . $ToUserInfoNickname.' 盲盒转盘礼物得到 ' .$gift_name.' x ' .$value['count'];
|
|
||||||
$text = [
|
|
||||||
'xlh_data' => $xlh,
|
|
||||||
'text' => $text_str
|
|
||||||
];
|
|
||||||
//聊天室推送系统消息
|
|
||||||
model('Chat')->sendMsg(1056,$room_id,$text);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
if($is_xlh ==1){
|
||||||
|
//推送
|
||||||
|
$text = [
|
||||||
|
'xlh_data' => $xlh,
|
||||||
|
'text' => ""
|
||||||
|
];
|
||||||
|
//聊天室推送系统消息
|
||||||
|
model('Chat')->sendMsg(1056,$room_id,$text);
|
||||||
|
}
|
||||||
|
|
||||||
$reslut = [];
|
$reslut = [];
|
||||||
$reslut['blind_box_turntable_id'] = $box_turntable_log;
|
$reslut['blind_box_turntable_id'] = $box_turntable_log;
|
||||||
$reslut['reslut_list'] = array_values($reslut_data);
|
$reslut['reslut_list'] = array_values($reslut_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user