|
@@ -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']);
|