Commit a85095cb authored by zw's avatar zw

searchOrder bug

parent 244413a0
...@@ -460,7 +460,7 @@ class OrderLog extends Basic ...@@ -460,7 +460,7 @@ class OrderLog extends Basic
if (!isset($params["type"]) || !isset($params["agent_id"]) || !isset($params["search_keyword"])) { if (!isset($params["type"]) || !isset($params["agent_id"]) || !isset($params["search_keyword"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
if(($params["type"] == 6 || $params["type"] == 7) && !is_int($params["search_keyword"])){ if(($params["type"] == 6 || $params["type"] == 7) && !preg_match("/^\d*$/",$params["search_keyword"])){
return $this->response("101", "客户编号或商铺编号错误"); return $this->response("101", "客户编号或商铺编号错误");
} }
try { try {
......
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