|
@@ -18,7 +18,7 @@ class Userdecorate extends Api
|
|
|
*/
|
|
|
public function decorate_list()
|
|
|
{
|
|
|
- $type = input_post('type',1); // 类型:1=座驾,2=头饰,3=尾灯,4=气泡,5=关系卡,6=联盟道具
|
|
|
+ $type = input_post('type',2); // 类型:1=座驾,2=头饰,3=尾灯,4=气泡,5=关系卡,6=联盟道具
|
|
|
|
|
|
// 获取基本信息
|
|
|
$where = [];
|
|
@@ -26,7 +26,7 @@ class Userdecorate extends Api
|
|
|
$where['status'] = 1;
|
|
|
$list = Db::name('decorate')->where($where)->autopage()->order('sort desc')->select();
|
|
|
|
|
|
- $list = list_domain_image($list,['base_image','play_image','android_image']);
|
|
|
+ $list = list_domain_image($list,['base_image','play_image']);
|
|
|
|
|
|
$this->success("success",$list);
|
|
|
}
|
|
@@ -85,7 +85,7 @@ class Userdecorate extends Api
|
|
|
public function my_decorate_list()
|
|
|
{
|
|
|
$uid = $this->auth->id;
|
|
|
- $type = input_post('type',1);
|
|
|
+ $type = input_post('type',2);
|
|
|
|
|
|
$map = [
|
|
|
'a.end_time' => ['gt',time()],
|
|
@@ -95,11 +95,11 @@ class Userdecorate extends Api
|
|
|
|
|
|
$list = Db::name('user_decorate')
|
|
|
->alias('a')
|
|
|
- ->field('a.id,a.is_using,a.end_time,b.name,b.base_image,b.play_image,b.android_image')
|
|
|
+ ->field('a.id,a.is_using,a.end_time,b.name,b.base_image,b.play_image')
|
|
|
->join('decorate b', 'a.decorate_id = b.id')
|
|
|
->where($map)->order('a.id desc')->autopage()->select();
|
|
|
|
|
|
- $list = list_domain_image($list,['base_image','play_image','android_image']);
|
|
|
+ $list = list_domain_image($list,['base_image','play_image']);
|
|
|
|
|
|
$this->success('success',$list);
|
|
|
}
|
|
@@ -107,7 +107,7 @@ class Userdecorate extends Api
|
|
|
//获得某用户的某类型正在使用的装扮
|
|
|
public function get_user_onetype_decorate(){
|
|
|
$uid = input_post('uid');
|
|
|
- $type = input_post('type',1);
|
|
|
+ $type = input_post('type',2);
|
|
|
|
|
|
if(!$uid){
|
|
|
$this->error();
|
|
@@ -122,10 +122,10 @@ class Userdecorate extends Api
|
|
|
];
|
|
|
|
|
|
$info = Db::name('user_decorate')->alias('a')
|
|
|
- ->field('a.id,a.is_using,a.end_time,b.name,b.base_image,b.play_image,b.android_image')
|
|
|
+ ->field('a.id,a.is_using,a.end_time,b.name,b.base_image,b.play_image')
|
|
|
->join('decorate b', 'a.decorate_id = b.id')
|
|
|
->where($map)->order('a.id desc')->find();
|
|
|
- $info = info_domain_image($info,['base_image','play_image','android_image']);
|
|
|
+ $info = info_domain_image($info,['base_image','play_image']);
|
|
|
|
|
|
$this->success('success',$info);
|
|
|
}
|