init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)

这个提交包含在:
Developer
2026-10-30 10:18:50 +08:00
当前提交 1f3e0ce2f6
共有 9291 个文件被更改,包括 1776674 次插入 和 0 次删除

查看文件

@@ -0,0 +1,56 @@
<?php
namespace app\api\controller\delivery\poster;
use think\Exception;
/**
* 通知接口
*/
class Notice extends PosterApi
{
// 无需登录的接口,*表示全部
protected $noNeedLogin = [];
// 无需鉴权的接口,*表示全部
protected $noNeedRight = "*";
public function _initialize()
{
parent::_initialize();
}
/**
* 通知列表
* @throws Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function index(){
$page = $this->request->post('page',0);
$limit = $this->request->post('limit',0);
$postNoticeService = new \addons\paotui\service\PosterNotice();
$data = $postNoticeService->getNoticeList($page,$limit);
$this->success('请求成功',$data);
}
/**
* 获取订单详情
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function info(){
$id = $this->request->post('id',0);
$postNoticeService = new \addons\paotui\service\PosterNotice();
$postNoticeInfo = $postNoticeService->getNoticeInfo($id);
if($postNoticeInfo){
$this->success("请求成功",$postNoticeInfo);
}else{
$this->error("请求失败");
}
}
}