Commit 193be7ef authored by clone's avatar clone

bug 预约看铺

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