Browse Source

礼物模块修改

lizhen_gitee 3 years ago
parent
commit
ee92500fd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Gift.php

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

@@ -31,7 +31,7 @@ class Gift extends Api
         // 获取基本信息
         $where = [];
         $type != '' && $where["type"] = $type;
-        $giftList = $this->giftModel->where($where)->order("value","asc")->select();
+        $giftList = Db::name('gift')->where($where)->order("value","asc")->select();
         $giftList = list_domain_image($giftList,['image','special']);
         $this->success("获取成功!",$giftList);
     }