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
f2c78b80
Commit
f2c78b80
authored
Jul 28, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
914f780d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
bpo-web/app/base/api/impl/bpoSDPJApi.js
+7
-6
No files found.
bpo-web/app/base/api/impl/bpoSDPJApi.js
View file @
f2c78b80
...
@@ -67,7 +67,6 @@ class BpoSDPJApi {
...
@@ -67,7 +67,6 @@ class BpoSDPJApi {
outTradeNo
:
obj
.
outTradeNo
,
outTradeNo
:
obj
.
outTradeNo
,
nonceStr
:
obj
.
nonceStr
nonceStr
:
obj
.
nonceStr
};
};
let
api
=
await
this
.
ecompanybusiSve
.
findOne
({
let
api
=
await
this
.
ecompanybusiSve
.
findOne
({
appId
:
obj
.
appId
,
appId
:
obj
.
appId
,
etemplate_id
:
obj
.
ecid
,
etemplate_id
:
obj
.
ecid
,
...
@@ -101,7 +100,12 @@ class BpoSDPJApi {
...
@@ -101,7 +100,12 @@ class BpoSDPJApi {
//1.mchtId & ecid 进行联合查询 如果存在直接返回
//1.mchtId & ecid 进行联合查询 如果存在直接返回
let
_cCashInfo
=
await
this
.
ccashinfoSve
.
getBean
(
obj
);
let
_cCashInfo
=
await
this
.
ccashinfoSve
.
getBean
(
obj
);
console
.
log
(
`bpoSDPJApi.js -> cashQRCode -> mchtId & ecid 进行联合查询 :参数=`
+
JSON
.
stringify
(
obj
)
+
" _cCashInfo = "
+
JSON
.
stringify
(
_cCashInfo
));
console
.
log
(
`bpoSDPJApi.js -> cashQRCode -> mchtId & ecid 进行联合查询 :参数=`
+
JSON
.
stringify
(
obj
)
+
" _cCashInfo = "
+
JSON
.
stringify
(
_cCashInfo
));
if
(
_cCashInfo
){
//如果二维码有效直接返回
if
(
_cCashInfo
.
qrcode_status
&&
_cCashInfo
.
qrcode
){
return
this
.
getCodeResult
(
0
,{
"qrcode"
:
_cCashInfo
.
qrcode
});
}
//如果二维码没有 可以继续生成二维码
if
(
_cCashInfo
&&
_cCashInfo
.
qrcode
){
return
this
.
getCodeResult
(
1002001
,
null
);
return
this
.
getCodeResult
(
1002001
,
null
);
}
}
//2.检验所有参数是否完整 如果出现非法参数直接返回
//2.检验所有参数是否完整 如果出现非法参数直接返回
...
@@ -120,7 +124,6 @@ class BpoSDPJApi {
...
@@ -120,7 +124,6 @@ class BpoSDPJApi {
return
this
.
getCodeResult
(
500
,
null
);
return
this
.
getCodeResult
(
500
,
null
);
}
}
let
_ccashinfoProperty
=
{};
let
_ccashinfoProperty
=
{};
_ccashinfoProperty
.
app_type
=
_ecompanybusi
.
app_type
;
_ccashinfoProperty
.
app_type
=
_ecompanybusi
.
app_type
;
_ccashinfoProperty
.
outTradeNo
=
obj
.
outTradeNo
;
_ccashinfoProperty
.
outTradeNo
=
obj
.
outTradeNo
;
_ccashinfoProperty
.
mchtId
=
obj
.
mchtId
;
_ccashinfoProperty
.
mchtId
=
obj
.
mchtId
;
...
@@ -140,11 +143,10 @@ class BpoSDPJApi {
...
@@ -140,11 +143,10 @@ class BpoSDPJApi {
let
custormUrl
=
`http://bpohhr.gongsibao.com?no=
${
_no
}
&outTradeNo=
${
_cCashInfo
.
outTradeNo
}
&mchtId=
${
_cCashInfo
.
mchtId
}
`
;
let
custormUrl
=
`http://bpohhr.gongsibao.com?no=
${
_no
}
&outTradeNo=
${
_cCashInfo
.
outTradeNo
}
&mchtId=
${
_cCashInfo
.
mchtId
}
`
;
//6.生成二维码
//6.生成二维码
let
url
=
await
this
.
qrClient
.
generateQR
(
custormUrl
);
let
url
=
await
this
.
qrClient
.
generateQR
(
custormUrl
);
_cCashInfo
.
qrcode
=
url
;
_cCashInfo
.
qrcode
=
url
;
_cCashInfo
.
qrcode_status
=
1
;
_cCashInfo
.
qrcode_status
=
1
;
_cCashInfo
.
sign_url
=
custormUrl
;
_cCashInfo
.
save
();
_cCashInfo
.
save
();
return
this
.
getCodeResult
(
0
,{
"qrcode"
:
url
||
""
});
return
this
.
getCodeResult
(
0
,{
"qrcode"
:
url
||
""
});
}
catch
(
e
)
{
}
catch
(
e
)
{
let
result
=
{
let
result
=
{
...
@@ -250,7 +252,6 @@ class BpoSDPJApi {
...
@@ -250,7 +252,6 @@ class BpoSDPJApi {
//异步推送信息
//异步推送信息
pushAsync
(
obj
);
pushAsync
(
obj
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
let
result
=
{
let
result
=
{
...
...
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