Browse Source

邀请注册奖励金币

lizhen_gitee 3 months ago
parent
commit
4d6f68a408
3 changed files with 9 additions and 10 deletions
  1. 7 7
      application/api/controller/User.php
  2. 1 1
      application/extra/site.php
  3. 1 2
      application/extra/wallet.php

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

@@ -239,9 +239,9 @@ class User extends Api
 
         //给上级发放钻石
         if(isset($data['intro_uid'])){
-            $intro_jewel = config('site.new_user_intro_jewel');
-            if($intro_jewel > 0){
-                $rs_wallet = model('wallet')->lockChangeAccountRemain($data['intro_uid'], 0,'jewel',$intro_jewel,34,'邀请'.$this->auth->username.'注册奖励');
+            $intro_gold = config('site.new_user_intro_gold');
+            if($intro_gold > 0){
+                $rs_wallet = model('wallet')->lockChangeAccountRemain($data['intro_uid'], 0,'gold',$intro_gold,34,'邀请'.$this->auth->username.'注册奖励');
                 if($rs_wallet['status'] === false){
                     Db::rollback();
                     $this->error('邀请新人奖励赠送失败');
@@ -368,9 +368,9 @@ class User extends Api
 
         //给上级发放钻石
         if(isset($data['intro_uid'])){
-            $intro_jewel = config('site.new_user_intro_jewel');
-            if($intro_jewel > 0){
-                $rs_wallet = model('wallet')->lockChangeAccountRemain($data['intro_uid'], 0,'jewel',$intro_jewel,34,'邀请'.$this->auth->username.'注册奖励');
+            $intro_gold = config('site.new_user_intro_gold');
+            if($intro_gold > 0){
+                $rs_wallet = model('wallet')->lockChangeAccountRemain($data['intro_uid'], 0,'gold',$intro_gold,34,'邀请'.$this->auth->username.'注册奖励');
                 if($rs_wallet['status'] === false){
                     Db::rollback();
                     $this->error('邀请新人奖励赠送失败');
@@ -397,7 +397,7 @@ class User extends Api
             }
         }
         //上传个性签名 5金币
-        if(isset($data['audio_bio'])){
+        if(isset($data['bio'])){
             $task_rs = \app\common\model\TaskLog::tofinish($this->auth->id,2);
             if($task_rs === false){
                 Db::rollback();

+ 1 - 1
application/extra/site.php

@@ -49,7 +49,7 @@ return array (
   'gift_plat_scale' => '60',
   'domain_cdnurl' => 'https://lejian-1326985955.cos.ap-shanghai.myqcloud.com',
   'guard_price' => '5200',
-  'new_user_intro_jewel' => '8888',
+  'new_user_intro_gold' => '100',
   'intro_income_rebate_rate' => '10',
   'intro_recharge_rebate_rate' => '25',
   'intro_images' => 

+ 1 - 2
application/extra/wallet.php

@@ -26,7 +26,7 @@ return [
 
 
         33 => '聊天赠送礼物',//jewel 减少
-        34 => '邀请新人注册奖励',//jewel增加
+        34 => '邀请新人注册奖励',//money增加
         35 => '充值金币赠送',//jewel 增加
         36 => '钻石转赠',//jewel 减少
         37 => '钻石获赠',//jewel 增加
@@ -58,7 +58,6 @@ return [
     'moneyname' => [
         'money'    => '积分',
         'gold'     => '金币',
-        'jewel'    => '钻石',
     ],
 
 ];