Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
ac52af9e
Commit
ac52af9e
authored
Dec 10, 2019
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
3754c1f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
3 deletions
+69
-3
xggpjb-admin/app/base/api/api.base.js
+1
-0
xggpjb-admin/app/base/api/impl/op/invoiceApi.js
+64
-0
xggpjb-admin/app/base/service/impl/invoice/invoiceSve.js
+4
-3
No files found.
xggpjb-admin/app/base/api/api.base.js
View file @
ac52af9e
...
@@ -61,6 +61,7 @@ class APIBase extends DocBase {
...
@@ -61,6 +61,7 @@ class APIBase extends DocBase {
var
lst
=
[
var
lst
=
[
"test.testApi"
,
"test.testApi"
,
"test.test"
,
"test.test"
,
"op.invoiceApi"
,
];
];
var
x
=
lst
.
indexOf
(
fullname
);
var
x
=
lst
.
indexOf
(
fullname
);
return
x
>=
0
;
return
x
>=
0
;
...
...
xggpjb-admin/app/base/api/impl/op/invoiceApi.js
0 → 100644
View file @
ac52af9e
var
APIBase
=
require
(
"../../api.base"
);
var
system
=
require
(
"../../../system"
);
class
TestAPI
extends
APIBase
{
constructor
()
{
super
();
// this.orderSve = system.getObject("service.order.orderSve");
// this.platformUtils = system.getObject("util.businessManager.opPlatformUtils");
this
.
invoiceSve
=
system
.
getObject
(
"service.invoice.invoiceSve"
);
}
async
test
(
pobj
,
query
,
req
)
{
// var tmp = await this.orderSve.createLicense(pobj.action_body);
//获取验证码
// await this.platformUtils.fetchVCode(pobj.action_body.mobile);
//创建用户
// var result = await this.platformUtils.createUserInfo("13075556691", "13075556693", "9366");
//创建用户
// var result = await this.platformUtils.login("13075556691", "9366");
var
result
=
{};
try
{
await
this
.
invoiceSve
.
sendInvoiceToDz
({
id
:
"11665025426002758"
});
}
catch
(
e
)
{
console
.
log
(
e
);
}
return
result
;
}
exam
()
{
return
""
;
}
classDesc
()
{
return
{
groupName
:
""
,
groupDesc
:
""
,
name
:
""
,
desc
:
""
,
exam
:
""
,
};
}
methodDescs
()
{
return
[
{
methodDesc
:
""
,
methodName
:
""
,
paramdescs
:
[
{
paramDesc
:
""
,
paramName
:
""
,
paramType
:
""
,
defaultValue
:
""
,
}
],
rtnTypeDesc
:
""
,
rtnType
:
""
}
];
}
}
module
.
exports
=
TestAPI
;
\ No newline at end of file
xggpjb-admin/app/base/service/impl/invoice/invoiceSve.js
View file @
ac52af9e
...
@@ -548,9 +548,9 @@ class InvoiceService extends ServiceBase {
...
@@ -548,9 +548,9 @@ class InvoiceService extends ServiceBase {
// 1090办理完成
// 1090办理完成
if
(
pobj
.
nextStatus
==
"1090"
)
{
if
(
pobj
.
nextStatus
==
"1090"
)
{
console
.
log
(
pobj
);
this
.
sendInvoiceToDz
(
pobj
);
this
.
sendInvoiceToDz
(
pobj
);
}
}
return
rs
;
return
rs
;
}
else
{
}
else
{
return
system
.
getResult
(
null
,
rs
.
msg
);
return
system
.
getResult
(
null
,
rs
.
msg
);
...
@@ -576,8 +576,9 @@ class InvoiceService extends ServiceBase {
...
@@ -576,8 +576,9 @@ class InvoiceService extends ServiceBase {
]
]
};
};
let
apiurl
=
"https://nga-api.gongsibao.com/nga-sass//billInfo/uploadFileForAliyun"
;
let
apiurl
=
"https://nga-api.gongsibao.com/nga-sass//billInfo/uploadFileForAliyun"
;
let
rs
=
await
this
.
restClient
.
execPost
(
params
,
apiurl
);
console
.
log
(
apiurl
,
params
);
console
.
log
(
rs
,
"11111111111111111111111111111111111111111111111"
);
// let rs = await this.restClient.execPost(params, apiurl);
// console.log(rs, "11111111111111111111111111111111111111111111111");
return
rs
;
return
rs
;
}
}
...
...
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