From bf5b0efffc215655033fa94caefbd2cd043cf253 Mon Sep 17 00:00:00 2001 From: ASUS <515617283@qq.com> Date: Fri, 15 Aug 2025 09:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=A8=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/model/Course.php | 4 ++-- app/czg/app/controller/AnnouncementController.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/api/model/Course.php b/app/api/model/Course.php index 48bb605..12ff143 100644 --- a/app/api/model/Course.php +++ b/app/api/model/Course.php @@ -4,9 +4,9 @@ namespace app\api\model; use app\common\library\DatabaseRoute; use app\common\model\Common; -use ba\Random; +use extend\ba\Random; use think\cache\driver\Redis; -use think\facade\Cache; +use support\think\Cache; use think\facade\Db; use think\facade\Log; use think\Model; diff --git a/app/czg/app/controller/AnnouncementController.php b/app/czg/app/controller/AnnouncementController.php index 084f078..afffe9f 100644 --- a/app/czg/app/controller/AnnouncementController.php +++ b/app/czg/app/controller/AnnouncementController.php @@ -2,6 +2,7 @@ namespace app\czg\app\controller; +use app\api\model\Announcement; use app\common\controller\Frontend; use app\czg\app\model\TbUser; @@ -13,7 +14,7 @@ class AnnouncementController extends Frontend public function index() { $get = $this->request->get(); - return $this->ApiDataReturn(\app\czg\app\model\Announcement::list($get['type'])); + return $this->ApiDataReturn(Announcement::list($get['type'])); }