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
8eebc5fc
Commit
8eebc5fc
authored
Aug 30, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序
parent
083630ce
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
WxSdkService.php
application/api/service/WxSdkService.php
+0
-3
Shop.php
application/api_broker/controller/Shop.php
+1
-0
No files found.
application/api/service/WxSdkService.php
View file @
8eebc5fc
...
@@ -27,12 +27,9 @@ class WxSdkService{
...
@@ -27,12 +27,9 @@ class WxSdkService{
public
function
getOpenidByCode
(
$code
)
public
function
getOpenidByCode
(
$code
)
{
{
$curl
=
new
CurlUtil
();
$curl
=
new
CurlUtil
();
big_log
(
$this
->
appId
);
big_log
(
$this
->
appSecret
);
$url
=
"https://api.weixin.qq.com/sns/jscode2session?appid=
{
$this
->
appId
}
&secret=
{
$this
->
appSecret
}
&js_code=
{
$code
}
&grant_type=authorization_code"
;
$url
=
"https://api.weixin.qq.com/sns/jscode2session?appid=
{
$this
->
appId
}
&secret=
{
$this
->
appSecret
}
&js_code=
{
$code
}
&grant_type=authorization_code"
;
$result
=
$curl
->
get
(
$url
);
$result
=
$curl
->
get
(
$url
);
$result
=
json_decode
(
$result
,
"true"
);
$result
=
json_decode
(
$result
,
"true"
);
big_log
(
$result
);
return
$result
;
return
$result
;
}
}
...
...
application/api_broker/controller/Shop.php
View file @
8eebc5fc
...
@@ -1358,6 +1358,7 @@ class Shop extends Basic
...
@@ -1358,6 +1358,7 @@ class Shop extends Basic
//t_look_shop_user
//t_look_shop_user
$lookShopUserModel
=
new
TLookShopUser
();
$lookShopUserModel
=
new
TLookShopUser
();
$where_
[
"house_id"
]
=
$params
[
"house_id"
];
$where_
[
"house_id"
]
=
$params
[
"house_id"
];
$where_
[
"source"
]
=
0
;
$logArr
=
$lookShopUserModel
->
getLogList
(
$where_
,
"id,user_id,type,house_id,create_time as look_day"
,
$pageNo
,
$pageSize
);
$logArr
=
$lookShopUserModel
->
getLogList
(
$where_
,
"id,user_id,type,house_id,create_time as look_day"
,
$pageNo
,
$pageSize
);
return
$this
->
response
(
"200"
,
"success"
,
$logArr
);
return
$this
->
response
(
"200"
,
"success"
,
$logArr
);
...
...
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