|
@@ -28,6 +28,10 @@ class Gift extends Api
|
|
|
// 获取基本信息
|
|
|
$where = ['is_show'=>1];
|
|
|
|
|
|
+ if(!$this->is_vip($this->auth->id)){
|
|
|
+ $where['is_vip'] = 0;
|
|
|
+ }
|
|
|
+
|
|
|
$giftList = Db::name('gift')->where($where)->order("weigh","desc")->select();
|
|
|
$giftList = list_domain_image($giftList,['image','special']);
|
|
|
$this->success("获取成功!",$giftList);
|