去除麦圈
This commit is contained in:
@@ -628,7 +628,6 @@ class BlindBoxTurntableGift extends Model
|
|||||||
* 礼物特效播放
|
* 礼物特效播放
|
||||||
*/
|
*/
|
||||||
public function gift_send($send_id){
|
public function gift_send($send_id){
|
||||||
try{
|
|
||||||
$blind_box_turntable = db('vs_blind_box_turntable_log')->where(['id'=>$send_id,'is_sued'=>0])->find();
|
$blind_box_turntable = db('vs_blind_box_turntable_log')->where(['id'=>$send_id,'is_sued'=>0])->find();
|
||||||
if(!$blind_box_turntable){
|
if(!$blind_box_turntable){
|
||||||
return ['code' => 1, 'msg' => '成功', 'data' => null];
|
return ['code' => 1, 'msg' => '成功', 'data' => null];
|
||||||
@@ -706,10 +705,6 @@ class BlindBoxTurntableGift extends Model
|
|||||||
}
|
}
|
||||||
db::name('vs_blind_box_turntable_log')->where('id', $send_id)->update(['is_sued' => 1, 'updatetime' => time()]);
|
db::name('vs_blind_box_turntable_log')->where('id', $send_id)->update(['is_sued' => 1, 'updatetime' => time()]);
|
||||||
return ['code' => 1, 'msg' => '成功', 'data' => null];
|
return ['code' => 1, 'msg' => '成功', 'data' => null];
|
||||||
} catch (\Exception $e) {
|
|
||||||
return ['code' => 0, 'msg' => "网络请求错误,请重试!", 'data' => null];
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1166,7 +1161,7 @@ class BlindBoxTurntableGift extends Model
|
|||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
'activities_name' => $xlh_box['name'],
|
'activities_name' => $xlh_box['name'],
|
||||||
'icon' => null,
|
'ico' => null,
|
||||||
'xlh_status'=>$xlh_status,
|
'xlh_status'=>$xlh_status,
|
||||||
'end_time'=>$xlh_data['end_time'] ?? 0,
|
'end_time'=>$xlh_data['end_time'] ?? 0,
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -135,13 +135,13 @@ class DailyTasks extends Model
|
|||||||
$v['processing_type'] = 2;
|
$v['processing_type'] = 2;
|
||||||
$v['processing_type_str'] = $this->processing_type_str[$v['processing_type']];
|
$v['processing_type_str'] = $this->processing_type_str[$v['processing_type']];
|
||||||
//跳转的房间路径
|
//跳转的房间路径
|
||||||
$v['from_id'] = db::name('vs_room')->where(['delete_time'=>0,'room_status'=>1,'type_id'=>['<>',6],'apply_status'=>2])->orderRaw('rand()')->value('id');
|
$v['from_id'] = db::name('vs_room')->where(['delete_time'=>0,'room_status'=>1,'type_id'=>['<>',6]])->orderRaw('rand()')->value('id');
|
||||||
$v['target_quantity'] = $v['target_quantity'] * 60;
|
$v['target_quantity'] = $v['target_quantity'] * 60;
|
||||||
$v['is_time'] = 1;
|
$v['is_time'] = 1;
|
||||||
}elseif(in_array($v['task_id'],[10])){
|
}elseif(in_array($v['task_id'],[10])){
|
||||||
$v['processing_type'] = 7;
|
$v['processing_type'] = 7;
|
||||||
$v['processing_type_str'] = $this->processing_type_str[$v['processing_type']];
|
$v['processing_type_str'] = $this->processing_type_str[$v['processing_type']];
|
||||||
$v['from_id'] = db::name('vs_room')->where(['delete_time'=>0,'room_status'=>1,'type_id'=>['<>',6],'apply_status'=>2])->orderRaw('rand()')->value('id');
|
$v['from_id'] = db::name('vs_room')->where(['delete_time'=>0,'room_status'=>1,'type_id'=>['<>',6]])->orderRaw('rand()')->value('id');
|
||||||
} else{
|
} else{
|
||||||
$v['processing_type'] = 9;
|
$v['processing_type'] = 9;
|
||||||
$v['processing_type_str'] = $this->processing_type_str[$v['processing_type']];
|
$v['processing_type_str'] = $this->processing_type_str[$v['processing_type']];
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class Decorate extends Model
|
|||||||
protected $createTime = 'createtime';
|
protected $createTime = 'createtime';
|
||||||
protected $updateTime = 'updatetime';
|
protected $updateTime = 'updatetime';
|
||||||
// 定义字段类型 1头像框 2坐骑 3麦圈 6个人靓号 7房间靓号 8公会靓号
|
// 定义字段类型 1头像框 2坐骑 3麦圈 6个人靓号 7房间靓号 8公会靓号
|
||||||
public $TypeArray = [1=>'头像框',2=>'坐骑',3=>'麦圈',6=>'个人靓号',7=>'房间靓号',8=>'公会靓号'];
|
public $TypeArray = [1=>'头像框',2=>'坐骑',6=>'个人靓号',7=>'房间靓号',8=>'公会靓号'];
|
||||||
protected $FromType = [1=>'购买',2=>'后台赠送',3=>'礼盒开奖',4=>'好友赠送',5=>'首充赠送',6=>'天降好礼获得',7=>'财富等级特权赠送'];
|
protected $FromType = [1=>'购买',2=>'后台赠送',3=>'礼盒开奖',4=>'好友赠送',5=>'首充赠送',6=>'天降好礼获得',7=>'财富等级特权赠送'];
|
||||||
public function __construct($data = [])
|
public function __construct($data = [])
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user