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
de4d5716
Commit
de4d5716
authored
Feb 26, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
163c89fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
+17
-14
No files found.
fi-taxctl/app/base/service/impl/rpt/rpttypeSve.js
View file @
de4d5716
...
...
@@ -140,7 +140,7 @@ class RptTypeService extends ServiceBase{
}
}));
console
.
log
(
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>sended..........."
);
console
.
log
(
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>sended..........."
+
batchid
);
self
.
redisClient
.
delete
(
"batch"
+
batchid
);
//改变批的状态为解析完毕
batch
.
batchstatuscode
=
"calc"
;
...
...
@@ -185,20 +185,23 @@ class RptTypeService extends ServiceBase{
async
updateTaskRptUrl
(
upinfo
){
await
this
.
db
.
models
.
uploadbatch
.
update
({
"wordrpturl"
:
upinfo
.
rptUrl
},{
where
:
{
id
:
upinfo
.
batchid
}});
var
batchobj
=
await
this
.
models
.
uploadbatch
.
findByPk
(
upinfo
.
batchid
);
//调用扣费接口
var
url
=
""
;
var
uid
=
batchobj
.
userid
;
if
(
settings
.
env
==
"dev"
){
url
=
"https://icompanytest.gongsibao.com?uid="
+
uid
;
}
else
{
url
=
"https://icompany.gongsibao.com?uid="
+
uid
;
}
request
(
url
,
function
(
error
,
response
,
body
)
{
console
.
log
(
body
);
if
(
!
error
&&
response
.
statusCode
==
200
)
{
console
.
log
(
body
);
if
(
batchobj
.
userid
&&
batchobj
.
userid
!=
""
){
//调用扣费接口
var
url
=
""
;
var
uid
=
batchobj
.
userid
;
if
(
settings
.
env
==
"dev"
){
url
=
"https://icompanytest.gongsibao.com?uid="
+
uid
;
}
else
{
url
=
"https://icompany.gongsibao.com?uid="
+
uid
;
}
});
request
(
url
,
function
(
error
,
response
,
body
)
{
console
.
log
(
body
);
if
(
!
error
&&
response
.
statusCode
==
200
)
{
console
.
log
(
body
);
}
});
}
return
{};
}
//返回
...
...
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