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
339c9bd5
Commit
339c9bd5
authored
Aug 05, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
9178fcb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
bpo-web/app/base/api/impl/bpoSDPJApi.js
+12
-0
bpo-web/app/base/utils/dictionary.js
+1
-1
No files found.
bpo-web/app/base/api/impl/bpoSDPJApi.js
View file @
339c9bd5
...
...
@@ -71,6 +71,13 @@ class BpoSDPJApi {
// let url = await this.qrClient.generateQR("https://bpohhr.gongsibao.com/sdpj?no=D6L0EoGg1wkzO5GEvm%2B9hA%3D%3D&outTradeNo=01234567891011121319&mchtId=1286935856342376450");
// console.log(url);
// }
async
testWxResult
()
{
let
arr
=
[
"NAME_MISMATCH:真实姓名不一致."
,
"NO_AUTH:此请求可能存在风险,已被微信拦截。"
,
"NO_AUTH:用户账号被冻结,无法付款"
,
"SENDNUM_LIMIT:该用户今日付款次数超过限制,如有需要请进入微信支付商户平台-产品中心-企业付款到零钱-产品设置进行修改"
,
"SUCCESS:支付失败"
,
"V2_ACCOUNT_SIMPLE_BAN:非实名用户账号不可发放"
,
"交易成功"
,
"商户下有用户未签约"
,
"商户订单号已存在"
,
"女性年龄必须在18到55之间"
,
"报文请求异常"
,
"报文请求异常A1290188506905247745"
,
"报文请求异常A1290463471281963010"
,
"报文请求异常B1290188503959044098"
,
"提现申请成功"
,
"无法给未实名用户付款"
,
"未开通此账户类型发薪"
,
"男性年龄必须在18到60之间"
,
"系统内部错误"
,
"账户余额不足DSL"
,
"银行客户端异常"
,
"领取失败"
,];
for
(
let
a
of
arr
)
{
console
.
log
(
this
.
getWxResult
(
a
));
}
}
async
sdpjCronTask
()
{
let
ids
=
await
this
.
ccashinfoSve
.
findUnNotifyIds
();
...
...
@@ -219,6 +226,11 @@ class BpoSDPJApi {
return
v
;
}
}
if
(
msg
.
indexOf
(
"NO_AUTH"
)
!=
-
1
)
{
msg
=
msg
.
replace
(
"NO_AUTH:"
,
""
);
msg
=
msg
.
replace
(
"NO_AUTH"
,
""
);
}
console
.
log
(
"------------------wxResult-msg-return2----------------"
,
msg
);
return
msg
;
}
...
...
bpo-web/app/base/utils/dictionary.js
View file @
339c9bd5
class
Dictionary
{
constructor
()
{
this
.
WX_RESULT_MAP
=
{
"NO_AUTH"
:
"没有该接口权限"
,
//
"NO_AUTH": "没有该接口权限",
"AMOUNT_LIMIT"
:
"金额超限"
,
"PARAM_ERROR"
:
"参数错误"
,
"OPENID_ERROR"
:
"Openid错误"
,
...
...
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