浏览代码

不是vip也要显示vip礼物

lizhen_gitee 3 月之前
父节点
当前提交
129ed3dbc0
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      application/api/controller/Gift.php

+ 5 - 5
application/api/controller/Gift.php

@@ -158,15 +158,15 @@ class Gift extends Api
 
     //礼物列表
     public function giftlist() {
-        $is_vip = $this->is_vip($this->auth->id);
+//        $is_vip = $this->is_vip($this->auth->id);
 
         $where = [
             'is_show' => 1,
-            'is_vip'  => 0,
+//            'is_vip'  => 0,
         ];
-        if($is_vip){
-            unset($where['is_vip']);
-        }
+//        if($is_vip){
+//            unset($where['is_vip']);
+//        }
 
         $giftList = Db::name('gift')->where($where)->order('weigh','desc')->select();
         $giftList = list_domain_image($giftList,['image','special']);