Commit 58c79848 authored by 姜登's avatar 姜登

gjj

parent abc79f04
Pipeline #4395 passed with stage
in 7 seconds
...@@ -170,10 +170,8 @@ class TaskController extends Controller { ...@@ -170,10 +170,8 @@ class TaskController extends Controller {
try { try {
ctx.validate(this.cityListRule); ctx.validate(this.cityListRule);
await service.signature.signatureCheck(ctx.request.body); await service.signature.signatureCheck(ctx.request.body);
ctx.body = { const result = await service.scripts.getCityList();
code: 0, ctx.body = result;
data: ctx.app.cityList
};
return; return;
} catch (err) { } catch (err) {
ctx.status = 200; ctx.status = 200;
......
...@@ -180,6 +180,10 @@ class ScriptsService extends Service { ...@@ -180,6 +180,10 @@ class ScriptsService extends Service {
return '未知'; return '未知';
} }
} }
async getCityList(){
}
} }
module.exports = ScriptsService; module.exports = ScriptsService;
...@@ -89,10 +89,6 @@ class TaskService extends Service { ...@@ -89,10 +89,6 @@ class TaskService extends Service {
return result.data; return result.data;
} }
async getCityList(){
}
} }
module.exports = TaskService; module.exports = TaskService;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment