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
6a5e8621
Commit
6a5e8621
authored
Sep 22, 2020
by
DESKTOP-7Q3CA17\86137
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
0c6000be
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
23 deletions
+23
-23
bpo-web/app/base/api/impl/econtractApi.js
+1
-0
bpo-web/app/base/api/impl/gemaApi.js
+2
-1
bpo-web/app/base/api/impl/qbgecontractApi.js
+0
-0
bpo-web/app/base/db/models/qbgconfig.js
+1
-2
bpo-web/app/base/service/impl/qbgconfigSve.js
+19
-20
No files found.
bpo-web/app/base/api/impl/econtractApi.js
View file @
6a5e8621
...
@@ -794,6 +794,7 @@ class EcontractApi {
...
@@ -794,6 +794,7 @@ class EcontractApi {
signArr
.
push
(
"userName="
+
userName
);
signArr
.
push
(
"userName="
+
userName
);
signArr
.
push
(
"key="
+
busi
.
key
);
signArr
.
push
(
"key="
+
busi
.
key
);
var
calcSign
=
md5
(
signArr
.
join
(
"&"
)).
toUpperCase
();
var
calcSign
=
md5
(
signArr
.
join
(
"&"
)).
toUpperCase
();
console
.
log
(
"银行卡四要素验证密钥++++++++++++++++++++++++++++++》"
,
calcSign
);
if
(
sign
!=
calcSign
)
{
if
(
sign
!=
calcSign
)
{
return
{
return
{
code
:
1
,
code
:
1
,
...
...
bpo-web/app/base/api/impl/gemaApi.js
View file @
6a5e8621
...
@@ -76,7 +76,8 @@ class GemaApi {
...
@@ -76,7 +76,8 @@ class GemaApi {
// 查appId关联key
// 查appId关联key
var
qbg
=
await
this
.
qbgconfigSve
.
findOne
({
var
qbg
=
await
this
.
qbgconfigSve
.
findOne
({
appId
:
param
.
appId
appId
:
param
.
appId
,
xbg_ecid
:
param
.
ecid
});
});
if
(
!
qbg
||
!
qbg
.
key
)
{
if
(
!
qbg
||
!
qbg
.
key
)
{
return
this
.
returnjson
(
1001003
,
"配置信息错误,请联系薪必果人员进行配置"
);
return
this
.
returnjson
(
1001003
,
"配置信息错误,请联系薪必果人员进行配置"
);
...
...
bpo-web/app/base/api/impl/qbgecontractApi.js
View file @
6a5e8621
This diff is collapsed.
Click to expand it.
bpo-web/app/base/db/models/qbgconfig.js
View file @
6a5e8621
...
@@ -8,8 +8,7 @@ module.exports = (db, DataTypes) => {
...
@@ -8,8 +8,7 @@ module.exports = (db, DataTypes) => {
initiator_account
:
DataTypes
.
STRING
,
initiator_account
:
DataTypes
.
STRING
,
merchant_name
:
DataTypes
.
STRING
,
merchant_name
:
DataTypes
.
STRING
,
ecompany_name
:
DataTypes
.
STRING
,
ecompany_name
:
DataTypes
.
STRING
,
phoneA
:
DataTypes
.
STRING
,
xbg_ecid
:
DataTypes
.
INTEGER
,
addressA
:
DataTypes
.
STRING
,
ecompany_id
:
DataTypes
.
INTEGER
,
ecompany_id
:
DataTypes
.
INTEGER
,
},{
},{
paranoid
:
true
,
//假的删除
paranoid
:
true
,
//假的删除
...
...
bpo-web/app/base/service/impl/qbgconfigSve.js
View file @
6a5e8621
...
@@ -26,6 +26,8 @@ class QbgconfigService extends ServiceBase {
...
@@ -26,6 +26,8 @@ class QbgconfigService extends ServiceBase {
let
ecid
=
params
.
ecid
;
let
ecid
=
params
.
ecid
;
// 验证身份证是否签约过
// 验证身份证是否签约过
let
todays
=
moment
().
format
(
"YYYY-MM-DD"
)
+
" 00:00:00"
;
let
todays
=
moment
().
format
(
"YYYY-MM-DD"
)
+
" 00:00:00"
;
// dkecompany
var
dkcompany
=
await
this
.
dkcompanyDao
.
findById
(
qbg
.
ecompany_id
);
let
contractId
=
await
this
.
dkcontractDao
.
findSignedContractId
({
let
contractId
=
await
this
.
dkcontractDao
.
findSignedContractId
({
idno
:
params
.
idNo
,
idno
:
params
.
idNo
,
...
@@ -124,27 +126,27 @@ class QbgconfigService extends ServiceBase {
...
@@ -124,27 +126,27 @@ class QbgconfigService extends ServiceBase {
appId
:
params
.
appId
,
appId
:
params
.
appId
,
nonceStr
:
params
.
nonceStr
,
nonceStr
:
params
.
nonceStr
,
timestamp
:
new
Date
().
getTime
(),
timestamp
:
new
Date
().
getTime
(),
initiatorAccountId
:
qbg
.
initiator_account
,
initiatorAccountId
:
qbg
.
initiator_account
,
//企业账号(E签宝)
accountId
:
eaccount
.
eaccountid
,
accountId
:
eaccount
.
eaccountid
,
//个人账号(E签宝)
channel
:
1
,
channel
:
1
,
entSealId
:
qbg
.
seal_id
,
entSealId
:
qbg
.
seal_id
,
contractName
:
qbg
.
merchant_name
,
contractName
:
dkcompany
.
name
,
//合同名称
simpleFormFields
:
{
simpleFormFields
:
{
nameA
:
qbg
.
merchant_name
,
nameA
:
dkcompany
.
name
,
//甲方 必填
addressA
:
qbg
.
addressA
,
addressA
:
dkcompany
.
addr
,
// 甲方地址
phoneA
:
qbg
.
phoneA
,
phoneA
:
dkcompany
.
phone
,
// 甲方电话
nameB
:
params
.
idName
,
nameB
:
params
.
idName
,
//乙方姓名 必填
phoneB
:
params
.
mobile
,
phoneB
:
params
.
mobile
,
//乙方电话 必填
nameC
:
params
.
idName
,
nameC
:
params
.
idName
,
// 乙方姓名
banknoC
:
params
.
bankno
,
banknoC
:
params
.
bankno
,
// 乙方电话
phoneC
:
params
.
mobile
,
phoneC
:
params
.
mobile
,
// 乙方身份证
idcardC
:
params
.
idNo
,
idcardC
:
params
.
idNo
,
// 乙方银行卡号
signdate
:
today
,
signdate
:
today
,
// 签约日期
},
},
templateId
:
params
.
ecid
templateId
:
qbg
.
template_id
//ecid(E签宝)
}
}
var
sign
=
await
this
.
getsign
(
toecontract
,
qbg
.
key
)
var
sign
=
await
this
.
getsign
(
toecontract
,
qbg
.
key
)
...
@@ -156,12 +158,11 @@ class QbgconfigService extends ServiceBase {
...
@@ -156,12 +158,11 @@ class QbgconfigService extends ServiceBase {
data
:
toecontract
,
data
:
toecontract
,
});
});
console
.
log
(
econtr
)
console
.
log
(
econtr
)
// 创建合同
// 创建合同
let
dkecontract
=
{
let
dkecontract
=
{
name
:
qbg
.
merchant_name
,
name
:
qbg
.
merchant_name
,
dktemplate_id
:
qbg
.
template_
id
,
dktemplate_id
:
ec
id
,
user_id
:
eaccount
.
user_id
,
user_id
:
eaccount
.
user_id
,
usereaccount_id
:
eaccount
.
id
,
usereaccount_id
:
eaccount
.
id
,
dkcompany_id
:
qbg
.
ecompany_id
,
dkcompany_id
:
qbg
.
ecompany_id
,
...
@@ -311,7 +312,7 @@ class QbgconfigService extends ServiceBase {
...
@@ -311,7 +312,7 @@ class QbgconfigService extends ServiceBase {
signDateA
:
today
,
signDateA
:
today
,
signDateB
:
today
signDateB
:
today
},
},
templateId
:
params
.
ec
id
templateId
:
qbg
.
template_
id
}
}
var
sign
=
await
this
.
getsign
(
toecontract
,
qbg
.
key
)
var
sign
=
await
this
.
getsign
(
toecontract
,
qbg
.
key
)
...
@@ -322,8 +323,6 @@ class QbgconfigService extends ServiceBase {
...
@@ -322,8 +323,6 @@ class QbgconfigService extends ServiceBase {
url
:
this
.
API
.
autoSign
,
url
:
this
.
API
.
autoSign
,
data
:
toecontract
,
data
:
toecontract
,
});
});
console
.
log
(
econtr
)
console
.
log
(
econtr
)
// 创建合同
// 创建合同
let
econtract
=
{
let
econtract
=
{
...
@@ -332,7 +331,7 @@ class QbgconfigService extends ServiceBase {
...
@@ -332,7 +331,7 @@ class QbgconfigService extends ServiceBase {
eflowstatus
:
"1"
,
eflowstatus
:
"1"
,
user_id
:
eaccount
.
user_id
,
user_id
:
eaccount
.
user_id
,
usereaccount_id
:
eaccount
.
id
,
usereaccount_id
:
eaccount
.
id
,
etemplate_id
:
qbg
.
template_
id
,
etemplate_id
:
ec
id
,
ecompany_id
:
qbg
.
ecompany_id
,
ecompany_id
:
qbg
.
ecompany_id
,
};
};
econtract
=
await
this
.
econtractDao
.
create
(
econtract
);
econtract
=
await
this
.
econtractDao
.
create
(
econtract
);
...
...
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