正在显示
1 个修改的文件
包含
12 行增加
和
1 行删除
| @@ -196,6 +196,17 @@ class ATemplateController extends BaseController | @@ -196,6 +196,17 @@ class ATemplateController extends BaseController | ||
| 196 | if (empty($referer) || false == in_array($referer, ['oa.cmer.com', 'quanqiusou.cn', 'zgjoa.globalso.com'])) { | 196 | if (empty($referer) || false == in_array($referer, ['oa.cmer.com', 'quanqiusou.cn', 'zgjoa.globalso.com'])) { |
| 197 | $this->response('非法请求',Code::SYSTEM_ERROR, []); | 197 | $this->response('非法请求',Code::SYSTEM_ERROR, []); |
| 198 | } | 198 | } |
| 199 | - $this->read($aTemplateLogic); | 199 | + |
| 200 | + $this->request->validate([ | ||
| 201 | + 'id'=>'required' | ||
| 202 | + ],[ | ||
| 203 | + 'id.required' => 'ID不能为空' | ||
| 204 | + ]); | ||
| 205 | + $info = $aTemplateLogic->aTemplateRead(); | ||
| 206 | + $common = $aTemplateLogic->getHeadFooterList(); | ||
| 207 | + foreach ($common as $v) { | ||
| 208 | + $info[$v['key']] = $v['values']; | ||
| 209 | + } | ||
| 210 | + $this->response('success',Code::SUCCESS,$info); | ||
| 200 | } | 211 | } |
| 201 | } | 212 | } |
-
请 注册 或 登录 后发表评论