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
d9a2df94
Commit
d9a2df94
authored
Jun 20, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信分享bug
parent
8292a9a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Index.php
application/app_broker/controller/Index.php
+7
-3
No files found.
application/app_broker/controller/Index.php
View file @
d9a2df94
...
@@ -30,7 +30,9 @@ class Index
...
@@ -30,7 +30,9 @@ class Index
public
function
index
()
public
function
index
()
{
{
$code
=
empty
(
$_GET
[
'code'
])
?
null
:
$_GET
[
'code'
];
$code
=
empty
(
$_GET
[
'code'
])
?
null
:
$_GET
[
'code'
];
$referrer_id
=
empty
(
$_GET
[
'referrer_id'
])
?
null
:
$_GET
[
'referrer_id'
];
$referrer_source
=
empty
(
$_GET
[
'referrer_source'
])
?
null
:
$_GET
[
'referrer_source'
];
if
(
!
$code
)
{
if
(
!
$code
)
{
$this
->
_wxApi
->
getWxCode
(
$this
->
url
);
$this
->
_wxApi
->
getWxCode
(
$this
->
url
);
...
@@ -64,14 +66,15 @@ class Index
...
@@ -64,14 +66,15 @@ class Index
die
();
die
();
}
else
{
}
else
{
//绑定页
//绑定页
$url
=
"referrer_id=
160&referrer_source=10&wx_union_id="
.
$wx_union_id
.
"&device_id="
.
$this
->
createOrderNumber
();
$url
=
"referrer_id=
$referrer_id
&referrer_source=
$referrer_source
&wx_union_id=
$wx_union_id
&device_id="
.
$this
->
createOrderNumber
();
header
(
"Location:"
.
CURRENT_URL
.
"app/dist/index.html#/inviteRegister?"
.
$url
);
header
(
"Location:"
.
CURRENT_URL
.
"app/dist/index.html#/inviteRegister?"
.
$url
);
die
();
die
();
}
}
}
}
}
}
}
}
/**
/**
* 随机数
* 随机数
* @return string
* @return string
...
@@ -80,6 +83,7 @@ class Index
...
@@ -80,6 +83,7 @@ class Index
{
{
return
time
()
.
mt_rand
(
10000
,
99999
);
return
time
()
.
mt_rand
(
10000
,
99999
);
}
}
public
function
achieve_fork
()
public
function
achieve_fork
()
{
{
return
view
(
'index/achieve_fork'
);
return
view
(
'index/achieve_fork'
);
...
...
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