Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
193be7ef
Commit
193be7ef
authored
Dec 15, 2017
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 预约看铺
parent
34cf51c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
AppointmentTime.php
application/api/controller/AppointmentTime.php
+3
-2
Basic.php
application/api/extend/Basic.php
+2
-2
No files found.
application/api/controller/AppointmentTime.php
View file @
193be7ef
...
...
@@ -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_
);
...
...
application/api/extend/Basic.php
View file @
193be7ef
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment