Commit 5afd34c6 authored by zw's avatar zw

bug

parent 1c46eacc
...@@ -32,7 +32,7 @@ class Location extends Basic ...@@ -32,7 +32,7 @@ class Location extends Basic
"agent_id" => 1, "agent_id" => 1,
"city" => "上海市" "city" => "上海市"
);*/ );*/
$checkResult = $this->validate($params, "LocationValidate.saveSiteCityVerify"); /* $checkResult = $this->validate($params, "LocationValidate.saveSiteCityVerify");
if (true !== $checkResult) { if (true !== $checkResult) {
return $this->response("101", $checkResult); return $this->response("101", $checkResult);
} }
...@@ -45,7 +45,7 @@ class Location extends Basic ...@@ -45,7 +45,7 @@ class Location extends Basic
$this->redis_->set(self::CITY_AGENTS . $agent_id, $city); $this->redis_->set(self::CITY_AGENTS . $agent_id, $city);
} else { } else {
return $this->response("101", "redis service not found"); return $this->response("101", "redis service not found");
} }*/
return $this->response("200", "success", []); return $this->response("200", "success", []);
......
...@@ -281,14 +281,14 @@ class Broker extends Basic ...@@ -281,14 +281,14 @@ class Broker extends Basic
$msg = ''; $msg = '';
$code = 200; $code = 200;
/*
try { try {
$redis_ = RedisExt::getRedis(); $redis_ = RedisExt::getRedis();
$redis_->set("agent_city_" . $this->userId, $this->params['city']); $redis_->set("agent_city_" . $this->userId, $this->params['city']);
} catch (\Exception $e) { } catch (\Exception $e) {
$code = 101; $code = 101;
$msg = $e->getMessage(); $msg = $e->getMessage();
} }*/
return $this->response($code, $msg); return $this->response($code, $msg);
} }
......
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