Commit b07faeb2 authored by 何娜's avatar 何娜

个税API增加帮助信息接口

parent cd7497c0
Pipeline #6618 passed with stage
in 8 seconds
......@@ -112,6 +112,32 @@ class OrderController extends Controller {
return ctx.body = { code: err.code || -1, msg: err.message || '' };
}
}
//获取帮助配置接口
async help(){
const { ctx, service } = this;
const { cityId } = ctx.params;
const cityName = await await service.scripts.fetchScriptName(cityId);
const helpData = await service.scripts.fetchHelp(cityId);
let helpInfo = [];
for(let item of helpData[0].help_list){
helpInfo.push({
desc: item.content,
link: {
label: item.button_name,
url: item.button_url,
},
})
}
ctx.success({
code: "0",
data: {
cityId,
city: cityName,
help: helpInfo
}
});
}
}
module.exports = OrderController;
......@@ -22,5 +22,5 @@ module.exports = app => {
taxRouter.post('/callback', controller.task.handleCallback); // 处理回调结果,不对外
// taxRouter.get('/helpInfo', controller.task.help);// 获取帮助信息
taxRouter.get('/helpInfo/:cityId', controller.order.help);// 获取帮助信息
};
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