|
@@ -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();
|