Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tax_api
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
tax_api
Commits
b07faeb2
Commit
b07faeb2
authored
Apr 28, 2019
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个税API增加帮助信息接口
parent
cd7497c0
Pipeline
#6618
passed with stage
in 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
order.js
app/controller/order.js
+26
-0
router.js
app/router.js
+1
-1
No files found.
app/controller/order.js
View file @
b07faeb2
...
...
@@ -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
;
app/router.js
View file @
b07faeb2
...
...
@@ -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
);
// 获取帮助信息
};
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