This commit is contained in:
ASUS 2025-08-15 09:48:20 +08:00
parent e51fd9b825
commit bf5b0efffc
2 changed files with 4 additions and 3 deletions

View File

@ -4,9 +4,9 @@ namespace app\api\model;
use app\common\library\DatabaseRoute; use app\common\library\DatabaseRoute;
use app\common\model\Common; use app\common\model\Common;
use ba\Random; use extend\ba\Random;
use think\cache\driver\Redis; use think\cache\driver\Redis;
use think\facade\Cache; use support\think\Cache;
use think\facade\Db; use think\facade\Db;
use think\facade\Log; use think\facade\Log;
use think\Model; use think\Model;

View File

@ -2,6 +2,7 @@
namespace app\czg\app\controller; namespace app\czg\app\controller;
use app\api\model\Announcement;
use app\common\controller\Frontend; use app\common\controller\Frontend;
use app\czg\app\model\TbUser; use app\czg\app\model\TbUser;
@ -13,7 +14,7 @@ class AnnouncementController extends Frontend
public function index() public function index()
{ {
$get = $this->request->get(); $get = $this->request->get();
return $this->ApiDataReturn(\app\czg\app\model\Announcement::list($get['type'])); return $this->ApiDataReturn(Announcement::list($get['type']));
} }