From de17f5416097be888f0ce9bb6c025627e316c4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Tue, 6 Jan 2026 14:58:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=92=E5=90=A7=E6=88=BF=EF=BC=9A->=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3=E6=8F=90=E4=BA=A4-bug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/GiftNew.php | 2 ++ application/api/model/UserWallet.php | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/application/api/model/GiftNew.php b/application/api/model/GiftNew.php index 02201f4b..9e4e7d0a 100644 --- a/application/api/model/GiftNew.php +++ b/application/api/model/GiftNew.php @@ -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]; } //自定义礼物列表 diff --git a/application/api/model/UserWallet.php b/application/api/model/UserWallet.php index cb9eab0d..a1c62cc4 100644 --- a/application/api/model/UserWallet.php +++ b/application/api/model/UserWallet.php @@ -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]; } }