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
68816f8d
Commit
68816f8d
authored
Jun 09, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
37f2c730
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
146 additions
and
1 deletions
+146
-1
bpo-web/app/base/service/impl/utillbwSve.js
+102
-0
bpo-web/app/config/settings.js
+43
-0
bpo-web/package.json
+1
-1
No files found.
bpo-web/app/base/service/impl/utillbwSve.js
0 → 100644
View file @
68816f8d
var
System
=
require
(
"../../system"
);
const
querystring
=
require
(
'querystring'
);
var
settings
=
require
(
"../../../config/settings"
);
const
logCtl
=
System
.
getObject
(
"web.oplogCtl"
);
const
crypto
=
require
(
'crypto'
);
const
uuidv4
=
require
(
'uuid/v4'
);
const
axios
=
require
(
'axios'
);
//工商查询操作
class
UitlLBWService
{
constructor
()
{
this
.
config
=
settings
.
lbwConfig
();
}
// async personTwo(params, opName) { // 个人二要素验证
// var result = {
// code: 1,
// message: "success",
// data: {}
// };
// var reqUrl = this.eSignBaoBankVerifyUrl + "/infoauth/psn/identity";
// var tResult = await this.returnResult(params, reqUrl, opName, "personTwo", result);
// if (tResult.errCode != 0) {
// result.code = -110;
// if (tResult.message && tResult.message.indexOf(":") > 0) {
// var tmpListStr = tResult.message.split(':');
// result.message = tmpListStr[1] ? tmpListStr[1] : tmpListStr[0];
// } else {
// result.message = "个人二要素验证失败";
// }
// return result;
// }
// if (tResult.errCode == 0 && tResult.data && !tResult.data.pass) {
// result.code = -120;
// result.message = "姓名或身份证错误";
// return result;
// }
// result.data = tResult.data;
// return result;
// }
async
bankthree
(
params
,
opName
)
{
//三要素验证
// name: account.userName,
// idno: account.personsSign,
// cardno: account
var
result
=
{
code
:
1
,
message
:
"success"
,
data
:
{}
};
let
reqUrl
=
this
.
config
.
validate_bank
;
var
tResult
=
await
this
.
returnResult
(
params
,
reqUrl
,
opName
,
"createAccountId"
,
result
);
if
(
tResult
.
errCode
!=
0
)
{
result
.
code
=
-
110
;
if
(
tResult
.
message
&&
tResult
.
message
.
indexOf
(
":"
)
>
0
)
{
var
tmpListStr
=
tResult
.
message
.
split
(
':'
);
result
.
message
=
tmpListStr
[
1
]
?
tmpListStr
[
1
]
:
tmpListStr
[
0
];
}
else
{
result
.
message
=
"三要素验证失败,错误信息["
+
tResult
.
message
+
"]"
;
}
return
result
;
}
if
(
tResult
.
errCode
==
0
&&
tResult
.
data
&&
!
tResult
.
data
.
pass
)
{
result
.
code
=
-
120
;
result
.
message
=
"亲,提供的信息不正确,请验证后再试!"
;
return
result
;
}
result
.
data
=
tResult
.
data
;
return
result
;
}
//
// async bankfour(params, opName) { //四要素验证
// var result = {
// code: 1,
// message: "success",
// data: {}
// };
// var reqUrl = this.eSignBaoBankVerifyUrl + "/infoauth/psn/bankfour";
// var tResult = await this.returnResult(params, reqUrl, opName, "createAccountId", result);
// if (tResult.errCode != 0) {
// result.code = -110;
// if (tResult.message && tResult.message.indexOf(":") > 0) {
// var tmpListStr = tResult.message.split(':');
// result.message = tmpListStr[1] ? tmpListStr[1] : tmpListStr[0];
// } else {
// result.message = "接口请求错误";
// }
// return result;
// }
// if (tResult.errCode == 0 && tResult.data && !tResult.data.pass) {
// result.code = -120;
// result.message = "亲,提供的信息不正确,请验证后再试!";
// return result;
// }
// result.data = tResult.data;
// return result;
// }
}
module
.
exports
=
UitlLBWService
;
bpo-web/app/config/settings.js
View file @
68816f8d
...
...
@@ -121,6 +121,49 @@ var settings = {
}
else
{
return
"https://bpohhr.gongsibao.com/h5"
;
}
},
lbwConfig
:
function
()
{
if
(
settings
.
env
==
"dev"
)
{
let
domain
=
"https://99num.com"
;
return
{
validate_bank
:
`
${
domain
}
/dsp-simple/api/validate/bank`
,
puk
:
"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvuoB1YqsDa1oUlPWZEUe
\
n"
+
"jK1y7Ja4W3AjTLfiqbo9Z6rY7h8ui/CbiZxpJuDg3H0cTI0k8UJWNO+CbYVioLo3
\
n"
+
"bK0Hj10jYkPdzRlQsaQ6gnJaj4DMVjmAjUUsBPnimnGsKvxLwPZTUiOMsVCOWYVH
\
n"
+
"rEdCrB4GVQSI9XVQFECYZTCzbtTilFB40NUlnKZ0IBbScA+c1A7buMUoR6E3hr93
\
n"
+
"8Mnls+szyO3J9/qA4XIq4tQIp6/UklYXn2ZkIRpk+Jb3Rm57wzfAw8VxCSVFHLxd
\
n"
+
"z5RXFLDeyvZuqSiA/9WX41IlSWjrcuqgHhWngnsv44LF/AsDJg/LRzLxWGK2k3Xa
\
n"
+
"qwIDAQAB"
,
pik
:
"MIIEogIBAAKCAQEAtkFN3EfRuUwuzKXwwkEtDQ8YfmtfbTmODe0hY33l9qqk7SC3
\
n"
+
"AErUYNyDbtDkb22v5kaDfCgGxQysAKC9xgMxeR/+IBG9WNvm+L/22Vz/+vFW45lv
\
n"
+
"d2F30TzNC16g0gDyFCI97ZdNWMgGFkRPhtQL4x5oArmBjQ2eVxq0zzR/Hvh3ujEO
\
n"
+
"GGjed19rY8H/zm9QQi5OJ05nsDULtE1AUgN22uuGbXAzqP3YuOejVeaYOuY9IQh/
\
n"
+
"5Tac/+Eh/AobSXT1PoyARLY01ZMn6kOYuo+iLIa3Wfkld2v6uhUTAMSugM19eVN3
\
n"
+
"G5flirOqPoSaTvH7dfQW/nnBXL+0qkVZ2Yo//wIDAQABAoIBAFD1gViwroDZTpCp
\
n"
+
"xeEEgraiVgcSOzmRr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PLDdbyQRdSFx
\
n"
+
"hYvt7b4TNrt8FQYBcARohN+EdKnuclS9OIuK/fRoRF80tX9fRCea18w14Lri6C86
\
n"
+
"/FAxAoGAL12Mui51jjbfZgj1nipEm2sTYUODEHngo545zr3uYgmvpLxBA6M5UYqC
\
n"
+
"4qPwuEUCnbE7/p1dG0GgIII/ctUpE8RcdGOAsYHK8kkF8PXXpXagrRsqhT4WLzca
\
n"
+
"yKEOEa4dbFzU1LXFqjD3Xv/c5mqcgYG1IMskAo9R00+XvTn8a6o="
,
};
}
else
{
return
{};
}
}
},
reqEsDevUrl
:
"http://192.168.4.249:9200/"
,
...
...
bpo-web/package.json
View file @
68816f8d
...
...
@@ -46,6 +46,7 @@
"
multer
"
:
"^1.3.0"
,
"
mysql2
"
:
"^1.5.3"
,
"
node-cron
"
:
"^2.0.1"
,
"
node-rsa
"
:
"^1.0.8"
,
"
node-uuid
"
:
"^1.4.8"
,
"
node-wxpay
"
:
"^1.1.3"
,
"
node-xlsx
"
:
"^0.14.1"
,
...
...
@@ -68,6 +69,5 @@
"
wx-pay
"
:
"^1.0.2"
,
"
xml2js
"
:
"^0.4.19"
},
"devDependencies"
:
{}
}
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