Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_welfare_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4e37a0bf
authored
Aug 28, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
补充邀请好友列表接口
parent
8f086b6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
app/Services/InviteService.php
routes/web.php
app/Services/InviteService.php
View file @
4e37a0bf
...
@@ -8,7 +8,7 @@ class InviteService
...
@@ -8,7 +8,7 @@ class InviteService
{
{
public
function
getInviteList
(
$map
=
[])
public
function
getInviteList
(
$map
=
[])
{
{
$url
=
config
(
'website.BaseUrl'
)
.
'/invite/list'
;
$url
=
config
(
'website.BaseUrl'
)
.
'/invite
s
/list'
;
$result
=
reportCurl
(
$url
,
$map
,
true
);
$result
=
reportCurl
(
$url
,
$map
,
true
);
$result
=
json_decode
(
$result
,
true
);
$result
=
json_decode
(
$result
,
true
);
...
...
routes/web.php
View file @
4e37a0bf
...
@@ -53,6 +53,7 @@ $router->group(['middleware' => ['web', 'login']], function () use ($router) {
...
@@ -53,6 +53,7 @@ $router->group(['middleware' => ['web', 'login']], function () use ($router) {
//邀请好友
//邀请好友
$router
->
post
(
'invites/add'
,
'InvitesController@store'
);
$router
->
post
(
'invites/add'
,
'InvitesController@store'
);
$router
->
get
(
'invites/list'
,
'InvitesController@index'
);
});
});
$router
->
group
([
'middleware'
=>
'web'
],
function
()
use
(
$router
)
{
$router
->
group
([
'middleware'
=>
'web'
],
function
()
use
(
$router
)
{
...
...
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