Jelajahi Sumber

邀请收益是money,收益

lizhen_gitee 1 Minggu lalu
induk
melakukan
e39cf1d8fd

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

@@ -232,7 +232,7 @@ class User extends Api
             $this->error('修改失败');
         }
 
-        //给上级发放钻石
+        //给上级发放收益
         if(isset($data['intro_uid'])){
             $intro_gold = config('site.new_user_intro_gold');
             if($intro_gold > 0){
@@ -369,7 +369,7 @@ class User extends Api
             $this->error('修改资料失败');
         }
 
-        //给上级发放钻石
+        //给上级发放收益
         if(isset($data['intro_uid'])){
             $intro_gold = config('site.new_user_intro_gold');
             if($intro_gold > 0){

+ 3 - 0
application/api/controller/Usercenter.php

@@ -307,6 +307,7 @@ class Usercenter extends Api
 
     //开通守护
     public function addguard() {
+        exit;
         // 接口防并发
         if (!$this->apiLimit(1, 1)) {
             $this->error(__('Operation frequently'));
@@ -412,6 +413,7 @@ class Usercenter extends Api
 
     //守护列表
     public function guardlist(){
+        exit;
         $user_id = input('user_id', 0, 'intval');
         if (!$user_id) {
             $this->error('您的网络开小差啦~');
@@ -440,6 +442,7 @@ class Usercenter extends Api
 
     //我的守护
     public function myguardlist(){
+        exit;
         $type = input('type', 0, 'intval'); //类型: 1我守护的  2守护我的
         if (!in_array($type, [1, 2])) {
             $this->error('您的网络开小差了');

+ 1 - 1
application/api/controller/Userset.php

@@ -26,7 +26,7 @@ class Userset extends Api
         $rs['alipay'] = Db::name('user_bank')->where(['user_id' => $this->auth->id, 'type' => 1])->count('id'); //支付宝绑定
         $rs['bank'] = Db::name('user_bank')->where(['user_id' => $this->auth->id, 'type' => 2])->count('id'); //银行卡绑定
 
-        $rs['new_user_intro_gold'] = config('site.new_user_intro_gold') ? : 0; //邀请注册赠送金币
+        $rs['new_user_intro_gold'] = config('site.new_user_intro_gold') ? : 0; //邀请注册赠送收益
         $rs['intro_recharge_rebate_rate']   = $this->auth->is_agent == 1 ? $this->auth->h_intro_recharge_rebate_rate : config('site.intro_recharge_rebate_rate'); //邀请人充值返利比率
         $rs['intro_income_rebate_rate']     = $this->auth->is_agent == 1 ? $this->auth->h_intro_income_rebate_rate   : config('site.intro_income_rebate_rate'); //邀请人收益返利比率