Commit 66666288 authored by clone's avatar clone

bug

parent e6b56f6c
......@@ -38,7 +38,7 @@ class Shop extends Basic
{
/* $params = array(
"site_area" => 2, //来源 1首页 2搜索
"site_area" => 1, //来源 1首页 2搜索
"title" => "尚美",
"carefully_chosen" => 0, //精选商铺--0是1否
"shangpu_type" => 0, //商铺类型(0商场,1街铺)
......
......@@ -67,8 +67,7 @@ class Basic extends Controller
} elseif (strtoupper($this->request->method()) === "POST") {
$this->params = $this->request->param() != null ? $this->request->param() : null;
}
$AuthToken = $this->params['AuthToken'];
if (isset($AuthToken) && $AuthToken != 'null' && !empty($AuthToken)) {
if (isset($this->params['AuthToken']) && $this->params['AuthToken'] != 'null' && !empty($this->params['AuthToken'])) {
$jwt = new \Firebase\JWT\JWT();
$this->authToken = $this->params['AuthToken'];
$result = $jwt->decode($this->authToken, config('jwt_key'), array( 'HS256' )); //解码token
......
......@@ -25,7 +25,7 @@ class HouseInfos extends Model
* @param $params
* @return false|\PDOStatement|string|\think\Collection
*/
function getHouseInfoList($pageNo = 1, $pageSize = 15, $order_ = 'id desc', $field, $params, $spTagsArr)
function getHouseInfoList($pageNo = 1, $pageSize = 15, $order_ = 'id desc', $field, $params,$spTagsArr)
{
return $this->dbHouseInfo
->field($field)
......
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