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
6466add5
Commit
6466add5
authored
Nov 21, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
e2c34a76
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
ShareShop.php
application/index/controller/ShareShop.php
+15
-4
UserService.php
application/index/service/UserService.php
+2
-0
Users.php
application/model/Users.php
+1
-0
No files found.
application/index/controller/ShareShop.php
View file @
6466add5
...
...
@@ -44,9 +44,12 @@ class ShareShop extends Basic
$this
->
_wxApi
->
getWxCode
(
$this
->
url
.
'?'
.
http_build_query
(
$params
));
}
else
{
$userInfo
=
$this
->
_wxApi
->
getUserInfoByAccessToken
(
$code
);
Log
::
write
(
json_encode
(
$userInfo
),
'shareShop'
);
//记录日志
//dump($userInfo);exit;
dump
(
'==========================='
);
dump
(
'==========================='
);
dump
(
'==========================='
);
dump
(
'==========================='
);
dump
(
'==========================='
);
dump
(
$userInfo
);
if
(
!
$userInfo
[
'wx_open_id'
])
{
$this
->
_wxApi
->
getWxCode
(
$this
->
url
.
'?'
.
http_build_query
(
$params
));
}
else
{
...
...
@@ -76,7 +79,15 @@ class ShareShop extends Basic
}
}
Log
::
write
(
json_encode
(
$params
),
'shareShop'
);
//记录日志
dump
(
'==========================='
);
dump
(
'==========================='
);
dump
(
'==========================='
);
dump
(
'==========================='
);
dump
(
'==========================='
);
dump
(
$params
);
$this
->
assign
(
'data'
,
json_encode
(
$params
));
return
view
(
"share_detail"
);
...
...
application/index/service/UserService.php
View file @
6466add5
...
...
@@ -451,6 +451,8 @@ class UserService
$param
[
'wx_open_id'
]
=
$open_id
;
$fields
=
'a.user_phone'
;
$result
=
$this
->
user
->
getUserInfoByOpenId
(
$param
,
$fields
);
dump
(
$param
);
dump
(
$result
);
if
(
$result
)
{
return
true
;
...
...
application/model/Users.php
View file @
6466add5
...
...
@@ -982,6 +982,7 @@ class Users extends Model
->
join
(
"u_wx_info b"
,
"a.buyer_id=b.id"
,
"left"
)
->
where
(
$where_
)
->
select
();
dump
(
$this
->
getLastSql
());
return
$data
;
}
}
...
...
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