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
61352057
Commit
61352057
authored
Mar 30, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成二维码
parent
08877b13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
Broker.php
application/api_broker/controller/Broker.php
+30
-0
route.php
application/route.php
+1
-0
No files found.
application/api_broker/controller/Broker.php
View file @
61352057
...
...
@@ -9,6 +9,7 @@
namespace
app\api_broker\controller
;
use
app\api\untils\GenerateCodeUntils
;
use
app\api\untils\JwtUntils
;
use
app\api\untils\MessageUntils
;
use
app\api_broker\extend\Basic
;
...
...
@@ -500,4 +501,32 @@ class Broker extends Basic
}
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
/**
* 生成邀请二维码
*
* @return \think\Response
*/
public
function
qrCode
()
{
$parms
=
$this
->
params
;
$data
[
'status'
]
=
101
;
$data
[
'data'
]
=
array
();
$data
[
'msg'
]
=
''
;
if
(
empty
(
$parms
[
'referrer_source'
]))
{
return
$this
->
response
(
$data
[
'status'
],
'来源为空'
,
$data
[
'data'
]);
}
if
(
empty
(
$this
->
agentId
))
{
return
$this
->
response
(
$data
[
'status'
],
'没有该用户'
,
$data
[
'data'
]);
}
$code
=
new
GenerateCodeUntils
();
$url
=
$this
->
request
->
domain
()
.
'/app.php/app/share_register?referrer_source=20&id='
.
$this
->
agentId
;
$path
=
$code
->
getCode
(
$url
,
$this
->
agentId
);
$data
[
'data'
]
=
[
'path'
=>
$this
->
request
->
domain
()
.
'/'
.
$path
];
$data
[
'status'
]
=
200
;
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
}
\ No newline at end of file
application/route.php
View file @
61352057
...
...
@@ -383,6 +383,7 @@ Route::group('broker', [
'addBargain'
=>
[
'api_broker/OrderLog/addBargain'
,
[
'method'
=>
'post'
]
],
//新增成交报告佣金(分佣提成)
'getSupervise'
=>
[
'api_broker/Supervise/getSupervise'
,
[
'method'
=>
'get'
]
],
//监督执行列表
'sendSms'
=>
[
'api_broker/broker/sendSms'
,
[
'method'
=>
'post'
]
],
//发送短信
'qrCode'
=>
[
'api_broker/broker/qrCode'
,
[
'method'
=>
'get'
]
],
//生成二维码
]);
...
...
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