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
350d0abe
Commit
350d0abe
authored
Apr 16, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
72608629
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
5 deletions
+33
-5
bpo-web/app/base/service/impl/dkcontractSve.js
+23
-2
bpo-web/app/base/service/impl/entcontractSve.js
+10
-3
No files found.
bpo-web/app/base/service/impl/dkcontractSve.js
View file @
350d0abe
...
...
@@ -427,7 +427,6 @@ class DKcontractService extends ServiceBase {
return
uuid
.
join
(
''
);
}
async
autoSign
(
params
)
{
var
ecid
=
params
.
ecid
;
var
unionId
=
params
.
appId
+
"_"
+
params
.
userId
+
"_"
+
params
.
idNo
;
...
...
@@ -525,6 +524,8 @@ class DKcontractService extends ServiceBase {
}
else
{
return
this
.
returnjson
(
-
1
,
"账户创建失败"
);
}
// TODO 静默前授权
}
dkecontract
=
{
name
:
dkcompany
.
name
,
...
...
@@ -565,6 +566,26 @@ class DKcontractService extends ServiceBase {
var
sealId
=
dkcompany
.
sealId
;
let
tt
=
await
this
.
utilesignbaoSve
.
userSignContractNoTemplate2
(
params
,
ebaoAccountId
,
thirdOrderNo
,
eBaoRedirectBossUrl
,
"econtractSve"
,
sealId
);
// TODO 静默签代码
// var autoUserSignTaskParams = {
// flowId: tFlowId, //流程id-- 必填
// accountId: ebaoAccountId, //签署人账户id-- 必填
// thirdOrderNo: tThirdOrderNo, //第三方流水号,通知回调使用
// sealType: "0", //印章类型, 指定签署印章类型,0:手绘印章;1:模板印章-- 必填 ?????????????????????????????
// posList: [{
// signType: 1, //盖章位置定位方式,1关键字定位-- 必填
// key: "sealB" //-- 必填
// }]
// };
//
// //4.发起用户自动签署 5.5.3
// var autoUserSignTaskResult = await self.autoUserSignTask(autoUserSignTaskParams, opName, result);
// if (autoUserSignTaskResult.code != 1) {
// return result;
// }
// // 打开这行注释
// await this.archiveProcess({flowId: tFlowId}, opName);
console
.
log
(
"-============= result ==========================="
,
tt
);
if
(
tt
&&
tt
.
data
&&
tt
.
code
==
1
)
{
dkecontract
.
eflowid
=
tt
.
data
.
flowId
;
...
...
@@ -581,7 +602,7 @@ class DKcontractService extends ServiceBase {
dkecontract
.
save
();
}
this
.
redisClient
.
rpushBCD
({
id
:
dkecontract
.
id
,
sve
:
"
e
"
});
this
.
redisClient
.
rpushBCD
({
id
:
dkecontract
.
id
,
sve
:
"
dk
"
});
return
this
.
returnjson
(
0
,
"success"
,
{
contractId
:
dkecontract
.
id
...
...
bpo-web/app/base/service/impl/entcontractSve.js
View file @
350d0abe
...
...
@@ -530,14 +530,21 @@ class EntcontractService extends ServiceBase {
companyName
:
params
.
merchantName
,
});
if
(
!
erchants
)
{
erchants
=
await
this
.
yzmerchantsignedDao
.
create
(
{
erchants
=
{
companyName
:
params
.
merchantName
,
appId
:
reso
.
data
.
appId
,
mchtId
:
reso
.
data
.
mchtId
,
mainId
:
reso
.
data
.
mainId
,
secret
:
reso
.
data
.
secret
,
ecid
:
10287
});
params
:
JSON
.
stringify
(
params
),
ecid
:
10287
};
try
{
erchants
=
await
this
.
yzmerchantsignedDao
.
create
(
erchants
);
}
catch
(
e
)
{
console
.
log
(
"c_yzmerchant_signed插入失败"
,
erchants
);
console
.
log
(
e
.
stack
);
}
}
var
etemplatebusi
=
await
this
.
etemplatebusiDao
.
findOne
({
...
...
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