酒吧房:->相关接口提交-bug修改
This commit is contained in:
@@ -136,6 +136,8 @@ class GiftNew extends Model
|
||||
'createtime'=>time()
|
||||
]);
|
||||
}
|
||||
$cache_key = 'gift_list_'.$gift_info['label'];
|
||||
Cache::rm($cache_key);
|
||||
return ['code' => 1, 'msg' => '设置成功','data' =>null];
|
||||
}
|
||||
//自定义礼物列表
|
||||
|
||||
@@ -54,15 +54,15 @@ class UserWallet extends Model
|
||||
//50-签约 51-签约失败退回,52-首次被签约收入 53-师徒签到 54-叛徒补偿,55-徒弟收礼返佣,56-续约,57签到,58爆币,59红包手续费
|
||||
if($gift_type == 1){ //1金币,2收益(钻石)
|
||||
if($in_out_type == 1){//1收入
|
||||
$in_out_types = [2,5,6,8,13,14,15,16,22,23,26,27,30,28,33,51,57,58];
|
||||
$in_out_types = [1,2,5,6,8,13,14,15,16,22,23,26,27,30,28,33,51,57,58];
|
||||
}elseif($in_out_type == 2){//2支出
|
||||
$in_out_types = [4,7,10,17,20,24,25,32,50,56,59];
|
||||
$in_out_types = [1,4,7,10,17,20,24,25,32,50,56,59];
|
||||
}
|
||||
}elseif($gift_type == 2){ //1金币,2收益(钻石)
|
||||
if($in_out_type == 1){//1收入
|
||||
$in_out_types = [6,9,11,12,18,19,21,22,31,28,34,52,53,54,55,57];
|
||||
$in_out_types = [1,6,9,11,12,18,19,21,22,31,28,34,52,53,54,55,57];
|
||||
}elseif($in_out_type == 2){//2支出
|
||||
$in_out_types = [3,14,29];
|
||||
$in_out_types = [1,3,14,29];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user