|
@@ -18,7 +18,7 @@ class Userdecorate extends Api
|
|
|
*/
|
|
|
public function decorate_list()
|
|
|
{
|
|
|
- $type = input_post('type',2);
|
|
|
+ $type = input('type',2);
|
|
|
|
|
|
|
|
|
$where = [];
|
|
@@ -35,7 +35,7 @@ class Userdecorate extends Api
|
|
|
* 购买并加入我的背包
|
|
|
*/
|
|
|
public function buy_one() {
|
|
|
- $did = input_post('did','');
|
|
|
+ $did = input('did','');
|
|
|
if (!$did) {
|
|
|
$this->error();
|
|
|
}
|
|
@@ -47,7 +47,7 @@ class Userdecorate extends Api
|
|
|
if(!$decorate) {
|
|
|
$this->error("装扮信息获取失败!");
|
|
|
}
|
|
|
- if($walletinfo['gold'] < $decorate['price']) {
|
|
|
+ if($walletinfo['jewel'] < $decorate['price']) {
|
|
|
$this->error("您的金币不足,请先充值!");
|
|
|
}
|
|
|
|
|
@@ -70,7 +70,7 @@ class Userdecorate extends Api
|
|
|
$this->error('购买失败');
|
|
|
}
|
|
|
|
|
|
- $rs = model('wallet')->lockChangeAccountRemain($this->auth->id,$decorate['price'],'-',0,'购买装扮',31,'jewel');
|
|
|
+ $rs = model('wallet')->lockChangeAccountRemain($this->auth->id,$decorate['price'],'-',0,'购买装扮',6,'jewel');
|
|
|
if($rs['status'] === false){
|
|
|
Db::rollback();
|
|
|
$this->error($rs['msg']);
|
|
@@ -85,7 +85,7 @@ class Userdecorate extends Api
|
|
|
public function my_decorate_list()
|
|
|
{
|
|
|
$uid = $this->auth->id;
|
|
|
- $type = input_post('type',2);
|
|
|
+ $type = input('type',2);
|
|
|
|
|
|
$map = [
|
|
|
'a.end_time' => ['gt',time()],
|
|
@@ -106,8 +106,8 @@ class Userdecorate extends Api
|
|
|
|
|
|
|
|
|
public function get_user_onetype_decorate(){
|
|
|
- $uid = input_post('uid');
|
|
|
- $type = input_post('type',2);
|
|
|
+ $uid = input('uid');
|
|
|
+ $type = input('type',2);
|
|
|
|
|
|
if(!$uid){
|
|
|
$this->error();
|
|
@@ -132,7 +132,7 @@ class Userdecorate extends Api
|
|
|
|
|
|
public function set_user_decorate()
|
|
|
{
|
|
|
- $did = input_post('did','');
|
|
|
+ $did = input('did','');
|
|
|
if (!$did) {
|
|
|
$this->error();
|
|
|
}
|
|
@@ -186,7 +186,7 @@ class Userdecorate extends Api
|
|
|
|
|
|
public function cancel_user_decorate()
|
|
|
{
|
|
|
- $did = input_post('did','');
|
|
|
+ $did = input('did','');
|
|
|
if (!$did) {
|
|
|
$this->error();
|
|
|
}
|