Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aic_duty_strategy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
yinxiaoling
aic_duty_strategy
Commits
bdafbf7a
Commit
bdafbf7a
authored
May 18, 2020
by
yinxiaoling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
子账号列表接口下发
parent
f4895371
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
Tool.php
app/Http/Controllers/Tool.php
+1
-1
StrategySetController.php
app/Http/Controllers/strategy/StrategySetController.php
+5
-0
api.php
routes/api.php
+2
-0
No files found.
app/Http/Controllers/Tool.php
View file @
bdafbf7a
...
...
@@ -7,7 +7,7 @@ use Illuminate\Support\Facades\Route; */
trait
Tool
{
public
function
getAllowLoginUser
(){
return
[
'user_name'
=>
'yxl00
1
'
,
'user_sn'
=>
'SYSUSER|9da548a2e392a679eb274a0b2abeb627'
,
'parent_sn'
=>
'ljs'
];
return
[
'user_name'
=>
'yxl00
2
'
,
'user_sn'
=>
'SYSUSER|9da548a2e392a679eb274a0b2abeb627'
,
'parent_sn'
=>
'ljs'
];
}
public
function
getAllowProjects
(
$style
=
0
){
$projectInfo
=
[[
'sn'
=>
'projects|a3a4259352c8e964ad6ea6c5ee8a7208'
,
'name'
=>
'liuy-转人工测试'
],[
'sn'
=>
'projects|17a71649f886bce050d637e86a3c85e8'
,
'name'
=>
'小贷-测试林俊生'
]];
...
...
app/Http/Controllers/strategy/StrategySetController.php
View file @
bdafbf7a
...
...
@@ -104,6 +104,11 @@ class StrategySetController extends Controller
});
return
$this
->
successWithInfo
(
'操作完成'
);
}
//子账号列表
public
function
getUsersList
(){
$usersInfo
=
$this
->
getAllowLoginUser
();
return
$this
->
successWithInfo
([[
$usersInfo
[
'user_sn'
]
=>
$usersInfo
[
'user_name'
]]]);
}
//项目列表
public
function
getProjectsList
(){
$projectInfo
=
$this
->
getAllowProjects
(
0
);
...
...
routes/api.php
View file @
bdafbf7a
...
...
@@ -22,6 +22,8 @@ Route::post('login', 'LoginApiController@index');
Route
::
group
([
'middleware'
=>
'check.apikey'
,
'namespace'
=>
'strategy'
],
function
()
{
Route
::
post
(
'strategy/getUsersList'
,
'StrategySetController@getUsersList'
)
->
name
(
'strategy.getUsersList'
);
//子账号列表
Route
::
post
(
'strategy/getProjectsList'
,
'StrategySetController@getProjectsList'
)
->
name
(
'strategy.getProjectsList'
);
//项目列表
Route
::
post
(
'strategy/getCallNumberList'
,
'StrategySetController@getCallNumberList'
)
->
name
(
'strategy.getCallNumberList'
);
//主叫号码列表
...
...
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