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
669beb76
Commit
669beb76
authored
Dec 13, 2019
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
f87fc522
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
20 deletions
+30
-20
bpo-web/app/base/controller/impl/dkcompanyCtl.js
+2
-1
bpo-web/app/base/controller/impl/dkcontractCtl.js
+1
-1
bpo-web/app/base/controller/impl/econtractCtl.js
+1
-1
bpo-web/app/base/service/impl/econtractSve.js
+3
-3
bpo-web/app/config/localsettings.js
+7
-8
bpo-web/app/config/settings.js
+16
-6
No files found.
bpo-web/app/base/controller/impl/dkcompanyCtl.js
View file @
669beb76
...
...
@@ -41,7 +41,8 @@ class DKcompanyCtl extends CtlBase {
if
(
isCreateSealKey
||
!
dkcompany
.
sealFileKey
)
{
// 创建企业印章fileKey
// var accountId = "740b19e0799a4d7abacfa1a31fb72b1e"; // 测试
var
accountId
=
"f50d8f8cdd8d4bcda6b1aaad1d4b14bf"
;
// 生产
// var accountId = "f50d8f8cdd8d4bcda6b1aaad1d4b14bf"; // 生产
var
accountId
=
settings
.
apiconfig
.
companyAccountId
();
// 生产
var
aliasName
=
dkcompany
.
id
+
"-"
+
uuidv4
();
var
rs
=
await
this
.
utilesignbaoSve
.
createEntSeal
(
dkcompany
.
sealUrl
,
accountId
,
aliasName
,
"dkcompanyCtl"
);
if
(
rs
.
code
==
1
)
{
...
...
bpo-web/app/base/controller/impl/dkcontractCtl.js
View file @
669beb76
...
...
@@ -268,7 +268,7 @@ class DKcontractCtl extends CtlBase {
var
sealId
=
""
;
if
(
!
eseal
)
{
var
rs
=
await
this
.
utilesignbaoSve
.
creatEntSignet
(
"f50d8f8cdd8d4bcda6b1aaad1d4b14bf"
,
nameA
+
"alias"
,
nameA
,
""
,
""
,
"econtractCtl"
);
var
rs
=
await
this
.
utilesignbaoSve
.
creatEntSignet
(
settings
.
apiconfig
.
companyAccountId
()
,
nameA
+
"alias"
,
nameA
,
""
,
""
,
"econtractCtl"
);
if
(
rs
&&
rs
.
code
==
1
)
{
sealId
=
rs
.
data
.
sealId
;
await
this
.
esealSve
.
create
({
...
...
bpo-web/app/base/controller/impl/econtractCtl.js
View file @
669beb76
...
...
@@ -302,7 +302,7 @@ class EcontractCtl extends CtlBase {
var
sealId
=
""
;
if
(
!
eseal
)
{
var
rs
=
await
this
.
utilesignbaoSve
.
creatEntSignet
(
"f50d8f8cdd8d4bcda6b1aaad1d4b14bf"
,
nameA
+
"alias"
,
nameA
,
""
,
""
,
"econtractCtl"
);
var
rs
=
await
this
.
utilesignbaoSve
.
creatEntSignet
(
settings
.
apiconfig
.
companyAccountId
()
,
nameA
+
"alias"
,
nameA
,
""
,
""
,
"econtractCtl"
);
if
(
rs
&&
rs
.
code
==
1
)
{
sealId
=
rs
.
data
.
sealId
;
await
this
.
esealSve
.
create
({
...
...
bpo-web/app/base/service/impl/econtractSve.js
View file @
669beb76
...
...
@@ -222,7 +222,7 @@ class EcontractService extends ServiceBase {
});
// TODO 生产环境需要打开
if
(
!
eseal
)
{
var
rs
=
await
this
.
utilesignbaoSve
.
creatEntSignet
(
"f50d8f8cdd8d4bcda6b1aaad1d4b14bf"
,
etemplate
.
nameA
+
"alias"
,
etemplate
.
nameA
,
""
,
""
,
"econtractSve"
);
var
rs
=
await
this
.
utilesignbaoSve
.
creatEntSignet
(
settings
.
apiconfig
.
companyAccountId
()
,
etemplate
.
nameA
+
"alias"
,
etemplate
.
nameA
,
""
,
""
,
"econtractSve"
);
if
(
rs
&&
rs
.
code
==
1
)
{
sealId
=
rs
.
data
.
sealId
;
await
this
.
esealSve
.
create
({
...
...
@@ -1342,7 +1342,7 @@ class EcontractService extends ServiceBase {
if
(
!
eseal
)
{
// var accountId = ""; // 测试
var
rs
=
await
this
.
utilesignbaoSve
.
creatEntSignet
(
"f50d8f8cdd8d4bcda6b1aaad1d4b14bf"
,
etemplate
.
nameA
+
"alias"
,
etemplate
.
nameA
,
""
,
""
,
"econtractSve"
);
var
rs
=
await
this
.
utilesignbaoSve
.
creatEntSignet
(
settings
.
apiconfig
.
companyAccountId
()
,
etemplate
.
nameA
+
"alias"
,
etemplate
.
nameA
,
""
,
""
,
"econtractSve"
);
// var rs = await this.utilesignbaoSve.creatEntSignet("740b19e0799a4d7abacfa1a31fb72b1e", etemplate.nameA + "alias", etemplate.nameA, "", "", "econtractSve");
if
(
rs
&&
rs
.
code
==
1
)
{
sealId
=
rs
.
data
.
sealId
;
...
...
@@ -1526,7 +1526,7 @@ class EcontractService extends ServiceBase {
if
(
!
eseal
)
{
// var accountId = ""; // 测试
var
rs
=
await
this
.
utilesignbaoSve
.
creatEntSignet
(
"f50d8f8cdd8d4bcda6b1aaad1d4b14bf"
,
etemplate
.
nameA
+
"alias"
,
etemplate
.
nameA
,
""
,
""
,
"econtractSve"
);
var
rs
=
await
this
.
utilesignbaoSve
.
creatEntSignet
(
settings
.
apiconfig
.
companyAccountId
()
,
etemplate
.
nameA
+
"alias"
,
etemplate
.
nameA
,
""
,
""
,
"econtractSve"
);
// var rs = await this.utilesignbaoSve.creatEntSignet("740b19e0799a4d7abacfa1a31fb72b1e", etemplate.nameA + "alias", etemplate.nameA, "", "", "econtractSve");
if
(
rs
&&
rs
.
code
==
1
)
{
sealId
=
rs
.
data
.
sealId
;
...
...
bpo-web/app/config/localsettings.js
View file @
669beb76
...
...
@@ -6,12 +6,11 @@ var settings = {
db
:
11
,
},
database
:
{
dbname
:
"bpo"
,
user
:
"write"
,
password
:
"write"
,
config
:
{
host
:
'192.168.18.237'
,
port
:
3306
,
dbname
:
"bpo"
,
user
:
"root"
,
password
:
"root"
,
config
:
{
host
:
'192.168.18.110'
,
dialect
:
'mysql'
,
operatorsAliases
:
false
,
pool
:
{
...
...
@@ -21,8 +20,8 @@ var settings = {
idle
:
1000000
},
logging
:
true
,
debug
:
true
,
dialectOptions
:
{
debug
:
true
,
dialectOptions
:
{
requestTimeout
:
999999
,
// instanceName:'DEV'
}
//设置MSSQL超时时间
...
...
bpo-web/app/config/settings.js
View file @
669beb76
...
...
@@ -48,7 +48,8 @@ var settings = {
//e签宝接口Url
eSignBaoUrl
:
function
()
{
if
(
settings
.
env
==
"dev"
)
{
return
"https://smlo.tsign.cn/opentreaty-service"
;
// return "https://smlo.tsign.cn/opentreaty-service";
return
"https://o.tsign.cn/opentreaty-service"
;
}
else
{
return
"https://o.tsign.cn/opentreaty-service"
;
}
...
...
@@ -56,7 +57,8 @@ var settings = {
//e签宝银行验证接口Url
eSignBaoBankVerifyUrl
:
function
()
{
if
(
settings
.
env
==
"dev"
)
{
return
"https://smlo.tsign.cn/openrealname-service"
;
// return "https://smlo.tsign.cn/openrealname-service";
return
"https://o.tsign.cn/openrealname-service"
;
}
else
{
return
"https://o.tsign.cn/openrealname-service"
;
}
...
...
@@ -64,19 +66,27 @@ var settings = {
//e签宝appId
eSignBaoAppId
:
function
()
{
if
(
settings
.
env
==
"dev"
)
{
return
"4438757581"
;
// return "4438757581";
return
"5111588557"
;
}
else
{
return
"5111566617"
// return "5111566617"
return
"5111588557"
}
},
//e签宝appKey
eSignBaoAppKey
:
function
()
{
if
(
settings
.
env
==
"dev"
)
{
return
"0d798cdf01ecb31bf9949f319f8d77db"
;
// return "0d798cdf01ecb31bf9949f319f8d77db";
return
"1595787e8d5b7d19f7b6798f16f41fc2"
;
}
else
{
return
"ea386dfd9063b3669b38b78ed36792cc"
// return "ea386dfd9063b3669b38b78ed36792cc"
return
"1595787e8d5b7d19f7b6798f16f41fc2"
}
},
// e签宝企业accountId
companyAccountId
:
function
()
{
return
"5c25eb4ee3b448da90babec3ce8d1144"
;
},
},
reqEsDevUrl
:
"http://192.168.4.249:9200/"
,
domain
:
function
()
{
...
...
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