Commit 5afd34c6 authored by zw's avatar zw

bug

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