Parcourir la source

礼物模块修改

lizhen_gitee il y a 3 ans
Parent
commit
ee92500fd2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
     }