소스 검색

礼物模块修改

lizhen_gitee 3 년 전
부모
커밋
ee92500fd2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
     }