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
521c8998
Commit
521c8998
authored
Jul 11, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
36f0c343
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
WxSdk.php
application/api/controller/WxSdk.php
+2
-1
No files found.
application/api/controller/WxSdk.php
View file @
521c8998
...
@@ -67,12 +67,13 @@ class WxSdk extends Basic
...
@@ -67,12 +67,13 @@ class WxSdk extends Basic
}
catch
(
Exception
$exception
)
{
}
catch
(
Exception
$exception
)
{
return
$this
->
response
(
"101"
,
"request error:"
.
$exception
);
return
$this
->
response
(
"101"
,
"request error:"
.
$exception
);
}
}
$conditions
[
"buyer_id"
]
=
$id
;
$conditions
[
"buyer_id"
]
=
$id
;
$fields
=
"id,user_nick,user_phone,user_pic,other_pic,last_login_time,last_login_ip,first_login_time"
;
$fields
=
"id,user_nick,user_phone,user_pic,other_pic,last_login_time,last_login_ip,first_login_time"
;
$user_info
=
$this
->
userModel
->
getUserByWhere
(
$conditions
,
$fields
);
$user_info
=
$this
->
userModel
->
getUserByWhere
(
$conditions
,
$fields
);
//todo 判断用户是否第一次登陆了没有则更新数据
//todo 判断用户是否第一次登陆了没有则更新数据
if
(
count
(
$user_info
)
>
0
&&
empty
(
$user_info
[
0
][
"last_login_time"
])
||
empty
(
$user_info
[
0
][
"last_login_ip"
])
if
(
$id
>
0
&&
count
(
$user_info
)
>
0
&&
empty
(
$user_info
[
0
][
"last_login_time"
])
||
empty
(
$user_info
[
0
][
"last_login_ip"
])
||
empty
(
$user_info
[
0
][
"first_login_time"
]))
{
||
empty
(
$user_info
[
0
][
"first_login_time"
]))
{
$userArr
=
array
(
$userArr
=
array
(
"id"
=>
$user_info
[
0
][
'id'
],
"id"
=>
$user_info
[
0
][
'id'
],
...
...
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