ソースを参照

用户头像框装扮

lizhen_gitee 1 年間 前
コミット
2b6d7c6590

+ 4 - 4
application/api/controller/Userdecorate.php

@@ -18,7 +18,7 @@ class Userdecorate extends Api
      */
     public function decorate_list()
     {
-        $type = input_post('type',1); // 类型:1=座驾,2=头饰,3=尾灯,4=气泡
+        $type = input_post('type',1); // 类型:1=座驾,2=头饰,3=尾灯,4=气泡,5=关系卡,6=联盟道具
 
         // 获取基本信息
         $where = [];
@@ -39,7 +39,7 @@ class Userdecorate extends Api
         if (!$did) {
             $this->error();
         }
-        // 判断用户钻石余额是否充足
+        // 判断用户金币余额是否充足
         $walletinfo = model('wallet')->getWallet($this->auth->id);
 
         // 获取购买装扮需要的价格
@@ -48,7 +48,7 @@ class Userdecorate extends Api
             $this->error("装扮信息获取失败!");
         }
         if($walletinfo['gold'] < $decorate['price']) {
-            $this->error("您的余额不足,请先充值!");
+            $this->error("您的金币不足,请先充值!");
         }
         // 进行购买逻辑
         Db::startTrans();
@@ -70,7 +70,7 @@ class Userdecorate extends Api
             $this->error('购买失败');
         }
 
-        $rs = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',-$decorate['price'],31,'','user_decorate',$log_id);
+        $rs = model('wallet')->lockChangeAccountRemain($this->auth->id,'gold',-$decorate['price'],31,'购买装扮','user_decorate',$log_id);
         if($rs['status'] === false){
             Db::rollback();
             $this->error($rs['msg']);

+ 1 - 1
application/extra/wallet.php

@@ -16,7 +16,7 @@ return [
         21 => '收益兑换金币',//money -
         22 => '收益兑换金币',//gold +
 
-        31 => '购买装扮消费',
+        31 => '购买装扮消费', //gold -
         41 => '签到赠送金币',