|
@@ -18,7 +18,7 @@ class Userdecorate extends Api
|
|
*/
|
|
*/
|
|
public function decorate_list()
|
|
public function decorate_list()
|
|
{
|
|
{
|
|
- $type = input_post('type',1);
|
|
+ $type = input_post('type',1);
|
|
|
|
|
|
|
|
|
|
$where = [];
|
|
$where = [];
|
|
@@ -39,7 +39,7 @@ class Userdecorate extends Api
|
|
if (!$did) {
|
|
if (!$did) {
|
|
$this->error();
|
|
$this->error();
|
|
}
|
|
}
|
|
-
|
|
+
|
|
$walletinfo = model('wallet')->getWallet($this->auth->id);
|
|
$walletinfo = model('wallet')->getWallet($this->auth->id);
|
|
|
|
|
|
|
|
|
|
@@ -48,7 +48,7 @@ class Userdecorate extends Api
|
|
$this->error("装扮信息获取失败!");
|
|
$this->error("装扮信息获取失败!");
|
|
}
|
|
}
|
|
if($walletinfo['gold'] < $decorate['price']) {
|
|
if($walletinfo['gold'] < $decorate['price']) {
|
|
- $this->error("您的余额不足,请先充值!");
|
|
+ $this->error("您的金币不足,请先充值!");
|
|
}
|
|
}
|
|
|
|
|
|
Db::startTrans();
|
|
Db::startTrans();
|
|
@@ -70,7 +70,7 @@ class Userdecorate extends Api
|
|
$this->error('购买失败');
|
|
$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){
|
|
if($rs['status'] === false){
|
|
Db::rollback();
|
|
Db::rollback();
|
|
$this->error($rs['msg']);
|
|
$this->error($rs['msg']);
|