Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjh5
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
data_server
gjjh5
Commits
58c79848
Commit
58c79848
authored
Mar 13, 2019
by
姜登
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gjj
parent
abc79f04
Pipeline
#4395
passed with stage
in 7 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
task.js
app/controller/task.js
+2
-4
scripts.js
app/service/scripts.js
+4
-0
task.js
app/service/task.js
+0
-4
No files found.
app/controller/task.js
View file @
58c79848
...
...
@@ -170,10 +170,8 @@ class TaskController extends Controller {
try
{
ctx
.
validate
(
this
.
cityListRule
);
await
service
.
signature
.
signatureCheck
(
ctx
.
request
.
body
);
ctx
.
body
=
{
code
:
0
,
data
:
ctx
.
app
.
cityList
};
const
result
=
await
service
.
scripts
.
getCityList
();
ctx
.
body
=
result
;
return
;
}
catch
(
err
)
{
ctx
.
status
=
200
;
...
...
app/service/scripts.js
View file @
58c79848
...
...
@@ -180,6 +180,10 @@ class ScriptsService extends Service {
return
'未知'
;
}
}
async
getCityList
(){
}
}
module
.
exports
=
ScriptsService
;
app/service/task.js
View file @
58c79848
...
...
@@ -89,10 +89,6 @@ class TaskService extends Service {
return
result
.
data
;
}
async
getCityList
(){
}
}
module
.
exports
=
TaskService
;
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