Commit 193be7ef authored by clone's avatar clone

bug 预约看铺

parent 34cf51c9
...@@ -38,7 +38,7 @@ class AppointmentTime extends Basic ...@@ -38,7 +38,7 @@ class AppointmentTime extends Basic
public function addAppointmentSeeShop() public function addAppointmentSeeShop()
{ {
$params = $this->params; $params = $this->params;
/* $params = array( /* $params = array(
"user_id" => 1, "user_id" => 1,
"house_id" => 1, "house_id" => 1,
"house_title" => "楼盘1", "house_title" => "楼盘1",
...@@ -47,9 +47,10 @@ class AppointmentTime extends Basic ...@@ -47,9 +47,10 @@ class AppointmentTime extends Basic
"expect_time" => time(), "expect_time" => time(),
"other_require" => "没有其他要求" "other_require" => "没有其他要求"
);*/ );*/
//todo 验证楼盘信息 //todo 验证楼盘信息
if (isset($params["house_id"]) && isset($params["house_title"])) { if (isset($params["house_id"]) && isset($params["house_title"])) {
$where_["house_id"] = $params["house_id"]; $where_["id"] = $params["house_id"];
$where_["title"] = $params["title"]; $where_["title"] = $params["title"];
$where_['show_all'] = array( 'eq', 0 ); $where_['show_all'] = array( 'eq', 0 );
$houseInfo = $this->houseInfoModel->getHouseDetail("id", $where_); $houseInfo = $this->houseInfoModel->getHouseDetail("id", $where_);
......
...@@ -68,7 +68,7 @@ class Basic extends Controller ...@@ -68,7 +68,7 @@ class Basic extends Controller
$requestPath = $this->request->routeInfo()["rule"][0]."/".$this->request->routeInfo()["rule"][1]; $requestPath = $this->request->routeInfo()["rule"][0]."/".$this->request->routeInfo()["rule"][1];
//过滤掉不需要验证token的接口 //过滤掉不需要验证token的接口
if (!in_array(trim($requestPath), $this->filterVerify)) { if (!in_array(trim($requestPath), $this->filterVerify)) {
$this->tokenVerify(); // $this->tokenVerify();
} }
} }
...@@ -82,7 +82,7 @@ class Basic extends Controller ...@@ -82,7 +82,7 @@ class Basic extends Controller
exit; exit;
} }
$jwt = new \Firebase\JWT\JWT(); $jwt = new \Firebase\JWT\JWT();
//$this->authToken = $this->params['AuthToken']; $this->authToken = $this->params['AuthToken'];
$result = $jwt->decode($this->authToken, config('jwt_key'), array( 'HS256' )); //解码token $result = $jwt->decode($this->authToken, config('jwt_key'), array( 'HS256' )); //解码token
$this->userId = $result->data->id; $this->userId = $result->data->id;
$this->phone = $result->data->phone; $this->phone = $result->data->phone;
......
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