Commit 40847a6b authored by hujun's avatar hujun

保存周报日报四个字段-搜索条件修改

parent ae5d653d
...@@ -116,12 +116,13 @@ class Statement extends Basic ...@@ -116,12 +116,13 @@ class Statement extends Basic
* @throws \think\exception\DbException * @throws \think\exception\DbException
*/ */
public function setReportContent() { public function setReportContent() {
header('Access-Control-Allow-Origin:*');
$code = 200; $code = 200;
$msg = ''; $msg = '';
$data = []; $data = [];
$note = new RAgentNote(); $note = new RAgentNote();
if ($this->request->isGet()) { if ($this->request->isGet()) {
$data = $note->get($this->agentId); $data = $note->get(['agent_id'=>$this->agentId]);
} else { } else {
$save_data['agent_id'] = $this->agentId; $save_data['agent_id'] = $this->agentId;
$save_data['content'] = $this->params['content']; $save_data['content'] = $this->params['content'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment