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
8b2a6145
Commit
8b2a6145
authored
May 15, 2020
by
yinxiaoling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主叫号码列表接口-固定
parent
c9ed0e82
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
Tool.php
app/Http/Controllers/Tool.php
+4
-0
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 @
8b2a6145
...
...
@@ -21,6 +21,10 @@ trait Tool
return
$projectInfo
;
}
}
public
function
getAllowCallNumber
(){
return
[
90002
,
80006
];
}
public
function
success
()
{
...
...
app/Http/Controllers/strategy/StrategySetController.php
View file @
8b2a6145
...
...
@@ -109,6 +109,11 @@ class StrategySetController extends Controller
$projectInfo
=
$this
->
getAllowProjects
(
0
);
return
$this
->
successWithInfo
([
'data'
=>
$projectInfo
]);
}
//主叫号码列表
public
function
getCallNumberList
(){
$callNumbnerInfo
=
$this
->
getAllowCallNumber
();
return
$this
->
successWithInfo
([
'data'
=>
$callNumbnerInfo
]);
}
//下载模板及下载导入失败excel数据
public
function
downloadModel
(
Request
$request
,
StrategyService
$StrategyService
){
...
...
routes/api.php
View file @
8b2a6145
...
...
@@ -24,6 +24,8 @@ Route::group(['middleware' => 'check.apikey','namespace'=>'strategy'], function
Route
::
post
(
'strategy/getProjectsList'
,
'StrategySetController@getProjectsList'
)
->
name
(
'strategy.getProjectsList'
);
//项目列表
Route
::
post
(
'strategy/getCallNumberList'
,
'StrategySetController@getCallNumberList'
)
->
name
(
'strategy.getCallNumberList'
);
//主叫号码列表
Route
::
get
(
'strategy/downloadModel'
,
'StrategySetController@downloadModel'
)
->
name
(
'strategy.downloadModel'
);
//导出模板
Route
::
get
(
'strategy/downloadFailExcel'
,
'StrategySetController@downloadFailExcel'
)
->
name
(
'strategy.downloadFailExcel'
);
//下载失败导入excel数据
...
...
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