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
c4f08aa2
Commit
c4f08aa2
authored
Jun 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享二维码
parent
1d841174
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Member.php
application/api/controller/Member.php
+3
-1
Broker.php
application/api_broker/controller/Broker.php
+1
-1
No files found.
application/api/controller/Member.php
View file @
c4f08aa2
...
@@ -442,6 +442,8 @@ class Member extends Basic
...
@@ -442,6 +442,8 @@ class Member extends Basic
* 生成邀请二维码
* 生成邀请二维码
*
*
* @return \think\Response
* @return \think\Response
* @throws \Endroid\QrCode\Exception\InvalidPathException
* @throws \Endroid\QrCode\Exception\InvalidWriterException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\DbException
...
@@ -458,7 +460,7 @@ class Member extends Basic
...
@@ -458,7 +460,7 @@ class Member extends Basic
if
(
$result
)
{
if
(
$result
)
{
$code
=
new
\app\api\untils\GenerateCodeUntils
();
$code
=
new
\app\api\untils\GenerateCodeUntils
();
$url
=
$this
->
request
->
domain
()
.
'/app
.php/app/share_register?referrer_source=10&
id='
.
$result
->
id
;
$url
=
$this
->
request
->
domain
()
.
'/app
_broker/index?referrer_source=10&referrer_
id='
.
$result
->
id
;
$path
=
$code
->
getCode
(
$url
,
$result
->
id
);
$path
=
$code
->
getCode
(
$url
,
$result
->
id
);
$data
[
'data'
]
=
[
'path'
=>
$this
->
request
->
domain
()
.
'/'
.
$path
];
$data
[
'data'
]
=
[
'path'
=>
$this
->
request
->
domain
()
.
'/'
.
$path
];
$data
[
'status'
]
=
200
;
$data
[
'status'
]
=
200
;
...
...
application/api_broker/controller/Broker.php
View file @
c4f08aa2
...
@@ -557,7 +557,7 @@ class Broker extends Basic
...
@@ -557,7 +557,7 @@ class Broker extends Basic
}
}
$code
=
new
GenerateCodeUntils
();
$code
=
new
GenerateCodeUntils
();
$url
=
$this
->
request
->
domain
()
.
'/app
/share_register?referrer_source=20&
id='
.
$this
->
agentId
;
$url
=
$this
->
request
->
domain
()
.
'/app
_broker/index?referrer_source=20&referrer_
id='
.
$this
->
agentId
;
$path
=
$code
->
getCode
(
$url
,
$this
->
agentId
,
2
);
$path
=
$code
->
getCode
(
$url
,
$this
->
agentId
,
2
);
$data
[
'data'
]
=
[
'path'
=>
$this
->
request
->
domain
()
.
'/'
.
$path
];
$data
[
'data'
]
=
[
'path'
=>
$this
->
request
->
domain
()
.
'/'
.
$path
];
$data
[
'status'
]
=
200
;
$data
[
'status'
]
=
200
;
...
...
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