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
13aef493
Commit
13aef493
authored
Sep 10, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺分享 记录
parent
96dee5e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
ShareShop.php
application/index/controller/ShareShop.php
+8
-2
No files found.
application/index/controller/ShareShop.php
View file @
13aef493
...
...
@@ -3,6 +3,7 @@
namespace
app\index\controller
;
use
app\api\controller\WxSdk
;
use
app\api\service\UserLookShopService
;
use
app\api\untils\WxCallbackUntils
;
use
app\index\extend\Basic
;
use
app\index\service\UserService
;
...
...
@@ -60,9 +61,14 @@ class ShareShop extends Basic
$wxInfoObj
=
$this
->
wxInfoModel
->
getWxInfoByOpenId
(
$wx_union_id
);
if
(
$wxInfoObj
&&
count
(
$wxInfoObj
)
>
0
)
{
$userInfo
[
"id"
]
=
$wxInfoObj
[
0
][
"id"
];
$id
=
$this
->
wxInfoModel
->
updateWxInfo
(
$userInfo
);
$this
->
wxInfoModel
->
updateWxInfo
(
$userInfo
);
$s_user_look_shop
=
new
UserLookShopService
();
if
(
isset
(
$params
[
'id'
])
&&
$params
[
'id'
]
>
0
){
$s_user_look_shop
->
saveUserLookShop
(
$wxInfoObj
[
0
][
"id"
],
$params
[
'id'
],
3
,
1
);
}
}
else
{
$id
=
$this
->
wxInfoModel
->
addWxInfo
(
$userInfo
);
$this
->
wxInfoModel
->
addWxInfo
(
$userInfo
);
}
$params
[
'is_user'
]
=
$is_user
;
...
...
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