Browse Source

客服不收钱

lizhen_gitee 11 months ago
parent
commit
1a61a911cd

+ 3 - 3
application/api/controller/Match.php

@@ -71,7 +71,7 @@ class Match extends Api
 
         //客服不收钱
         $kefu_ids = config('site.kefu_user_ids');
-        if(in_array($to_user_id,$kefu_ids)){
+        if(in_array($to_user_id,explode(',',$kefu_ids))){
             $rs = [
                 'get_jewel_value' => 0,
             ];
@@ -226,7 +226,7 @@ class Match extends Api
 
         //客服不收钱
         $kefu_ids = config('site.kefu_user_ids');
-        if(in_array($to_user_id,$kefu_ids)){
+        if(in_array($to_user_id,explode(',',$kefu_ids))){
             $rs = [
                 'get_jewel_value' => 0,
             ];
@@ -379,7 +379,7 @@ class Match extends Api
 
         //客服不收钱
         $kefu_ids = config('site.kefu_user_ids');
-        if(in_array($to_user_id,$kefu_ids)){
+        if(in_array($to_user_id,explode(',',$kefu_ids))){
             $rs = [
                 'get_jewel_value' => 0,
             ];

+ 2 - 2
application/api/controller/Usercenter.php

@@ -112,7 +112,7 @@ class Usercenter extends Api
         //是否客服
         $userinfo['is_kefu'] = 0;
         $kefu_ids = config('site.kefu_user_ids');
-        if(in_array($uid,$kefu_ids)){
+        if(in_array($uid,explode(',',$kefu_ids))){
             $userinfo['is_kefu'] = 1;
         }
 
@@ -290,7 +290,7 @@ class Usercenter extends Api
         //是否客服
         $userinfo['is_kefu'] = 0;
         $kefu_ids = config('site.kefu_user_ids');
-        if(in_array($uid,$kefu_ids)){
+        if(in_array($uid,explode(',',$kefu_ids))){
             $userinfo['is_kefu'] = 1;
         }
 

+ 2 - 2
application/extra/site.php

@@ -50,7 +50,7 @@ return array (
   'invitesite_activeinfo' => '好友充值1000金币可得400金币
 好友提现1000金币可得100金币',
   'introsite_introrule' => '通过海报分享或者链接分享方式注册用户,或直接通过用户绑定方式进行参与活动',
-  'kefu_user_ids' => '536',
+  'kefu_user_ids' => '3,4',
   'android_is_force' => '1',
   'android_apkUrl' => 'https://oss.tken.vip/apk/app-release102.apk',
   'android_apkName' => '1.0.0',
@@ -105,7 +105,7 @@ return array (
   'withdraw_min_price' => '1000',
   'withdrawal_plat_bili' => '6.5',
   'agentjewel_to_money' => '10',
-  'withdraw_rule' => '1、每日提现一次,累计100金币可提现
+  'withdraw_rule' => '1、每日提现一次,累计1000金币可提现
 2、到账时间:每天18:00点之前申请提现,当日24:00前到账,每天18:00后申请提现,将在次日24:00前到账(节假日及特殊情况,提现到账将适度延迟)
 3、收益提现时平台将收取6.5%的手续费',
   'intimacy_rule' => '1.在你们私信聊天当中,每产生消耗金币的行为(消息互动,语音聊天,视频聊天,赠送礼物都包含在内)1亲密度=100金币