作者 周海龙

合并分支 'zhl' 到 'master'

Zhl



查看合并请求 !16
@@ -197,6 +197,17 @@ class ATemplateController extends BaseController @@ -197,6 +197,17 @@ class ATemplateController extends BaseController
197 if (empty($referer) || false == in_array($referer, ['oa.cmer.com', 'quanqiusou.cn', 'zgjoa.globalso.com'])) { 197 if (empty($referer) || false == in_array($referer, ['oa.cmer.com', 'quanqiusou.cn', 'zgjoa.globalso.com'])) {
198 $this->response('非法请求',Code::SYSTEM_ERROR, []); 198 $this->response('非法请求',Code::SYSTEM_ERROR, []);
199 } 199 }
200 - $this->read($aTemplateLogic); 200 +
  201 + $this->request->validate([
  202 + 'id'=>'required'
  203 + ],[
  204 + 'id.required' => 'ID不能为空'
  205 + ]);
  206 + $info = $aTemplateLogic->aTemplateRead();
  207 + $common = $aTemplateLogic->getHeadFooterList();
  208 + foreach ($common as $v) {
  209 + $info[$v['key']] = $v['values'];
  210 + }
  211 + $this->response('success',Code::SUCCESS,$info);
201 } 212 }
202 } 213 }