巡乐会抽奖接口提交.-错误调试
This commit is contained in:
@@ -134,6 +134,7 @@ class BlindBox extends adminApi
|
|||||||
$gift_bag_id = input('gift_bag_id', '');
|
$gift_bag_id = input('gift_bag_id', '');
|
||||||
$quantity = input('quantity', 0);
|
$quantity = input('quantity', 0);
|
||||||
$weight = input('weight', 0);
|
$weight = input('weight', 0);
|
||||||
|
$is_world_show = input('is_world_show', 0);
|
||||||
if(empty($gift_id)){
|
if(empty($gift_id)){
|
||||||
return V(0,"请选择礼物");
|
return V(0,"请选择礼物");
|
||||||
}
|
}
|
||||||
@@ -157,6 +158,7 @@ class BlindBox extends adminApi
|
|||||||
$data['remaining_number'] = $quantity;
|
$data['remaining_number'] = $quantity;
|
||||||
$data['createtime'] = time();
|
$data['createtime'] = time();
|
||||||
$data['weight'] = $weight;
|
$data['weight'] = $weight;
|
||||||
|
$data['is_world_show'] = $is_world_show;
|
||||||
|
|
||||||
$res = db::name($this->table)->insert($data);
|
$res = db::name($this->table)->insert($data);
|
||||||
if($res){
|
if($res){
|
||||||
|
|||||||
@@ -167,10 +167,10 @@ class BlindBoxTurntableGift extends Model
|
|||||||
$FromUserInfoNickname = db::name('user')->where(['id'=>$user_id])->value('nickname');
|
$FromUserInfoNickname = db::name('user')->where(['id'=>$user_id])->value('nickname');
|
||||||
$ToUserInfoNickname = db::name('user')->where(['id'=>$value['gift_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');
|
$gift_name = db::name('vs_gift')->where(['id'=>$value['gift_id']])->value('gift_name');
|
||||||
$text = $FromUserInfoNickname . ' 送给 ' . $ToUserInfoNickname.' 盲盒转盘礼物得到 ' .$gift_name.' x ' .$value['count'];
|
$text_str = $FromUserInfoNickname . ' 送给 ' . $ToUserInfoNickname.' 盲盒转盘礼物得到 ' .$gift_name.' x ' .$value['count'];
|
||||||
$text = [
|
$text = [
|
||||||
'xlh_data' => $xlh,
|
'xlh_data' => $xlh,
|
||||||
'text' => $text
|
'text' => $text_str
|
||||||
];
|
];
|
||||||
//聊天室推送系统消息
|
//聊天室推送系统消息
|
||||||
model('Chat')->sendMsg(1056,$room_id,$text);
|
model('Chat')->sendMsg(1056,$room_id,$text);
|
||||||
|
|||||||
@@ -545,7 +545,7 @@ class GiveGift extends Model
|
|||||||
}else{
|
}else{
|
||||||
if($gift_info['is_public_server'] == 1){
|
if($gift_info['is_public_server'] == 1){
|
||||||
//推送礼物横幅
|
//推送礼物横幅
|
||||||
$push = new Push(UID, $from_id);
|
$push = new Push($uid, $from_id);
|
||||||
$room_name = Db::name('vs_room')->where(['id' => $from_id, 'apply_status' => 2])->value('room_name');
|
$room_name = Db::name('vs_room')->where(['id' => $from_id, 'apply_status' => 2])->value('room_name');
|
||||||
$text = $FromUserInfo['nickname'] . '在' . $room_name . '房间送给了' . $ToUserInfo['nickname'] . $gift_info['gift_name'] . 'X' . $num;
|
$text = $FromUserInfo['nickname'] . '在' . $room_name . '房间送给了' . $ToUserInfo['nickname'] . $gift_info['gift_name'] . 'X' . $num;
|
||||||
$text_list_new = [
|
$text_list_new = [
|
||||||
|
|||||||
Reference in New Issue
Block a user