Commit 90d49678 authored by hujun's avatar hujun

跨域

parent e6a76b73
...@@ -29,6 +29,7 @@ class Statement extends Basic ...@@ -29,6 +29,7 @@ class Statement extends Basic
public function dayStatement() public function dayStatement()
{ {
header('Access-Control-Allow-Origin:*');
$params = $this->params; $params = $this->params;
/* $params = array( /* $params = array(
"agent_id" => 1, "agent_id" => 1,
...@@ -58,6 +59,7 @@ class Statement extends Basic ...@@ -58,6 +59,7 @@ class Statement extends Basic
*/ */
public function weekWorkImg() public function weekWorkImg()
{ {
header('Access-Control-Allow-Origin:*');
if (empty($this->params["agent_id"]) || empty($this->params["img"])) { if (empty($this->params["agent_id"]) || empty($this->params["img"])) {
return $this->response("101", "参数错误"); return $this->response("101", "参数错误");
} }
...@@ -104,7 +106,7 @@ class Statement extends Basic ...@@ -104,7 +106,7 @@ class Statement extends Basic
$msg = '生成图片失败'; $msg = '生成图片失败';
} }
return $this->response($code, $msg); return $this->response($code, $msg, $data['img_name']);
} }
/** /**
......
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