This commit is contained in:
parent
e51fd9b825
commit
bf5b0efffc
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue