Browse Source

任何一方是客服,都不收钱

lizhen_gitee 11 months ago
parent
commit
27e21479fe
2 changed files with 4 additions and 4 deletions
  1. 3 3
      application/api/controller/Match.php
  2. 1 1
      application/extra/site.php

+ 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,explode(',',$kefu_ids))){
+        if(in_array($to_user_id,explode(',',$kefu_ids)) || in_array($this->auth->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,explode(',',$kefu_ids))){
+        if(in_array($to_user_id,explode(',',$kefu_ids)) || in_array($this->auth->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,explode(',',$kefu_ids))){
+        if(in_array($to_user_id,explode(',',$kefu_ids)) || in_array($this->auth->id,explode(',',$kefu_ids))){
             $rs = [
                 'get_jewel_value' => 0,
             ];

+ 1 - 1
application/extra/site.php

@@ -50,7 +50,7 @@ return array (
   'invitesite_activeinfo' => '好友充值1000金币可得400金币
 好友提现1000金币可得100金币',
   'introsite_introrule' => '通过海报分享或者链接分享方式注册用户,或直接通过用户绑定方式进行参与活动',
-  'kefu_user_ids' => '3,4',
+  'kefu_user_ids' => '4,5',
   'android_is_force' => '1',
   'android_apkUrl' => 'https://oss.tken.vip/apk/app-release102.apk',
   'android_apkName' => '1.0.0',