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
53a526b2
Commit
53a526b2
authored
Jan 13, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
1bf9a945
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
4 deletions
+27
-4
igirl-web/app/base/service/impl/utilstlbankSve.js
+20
-4
igirl-web/app/config/settings.js
+7
-0
No files found.
igirl-web/app/base/service/impl/utilstlbankSve.js
View file @
53a526b2
...
...
@@ -26,6 +26,7 @@ class utilsTlBankSve {
this
.
customerinfoDao
=
System
.
getObject
(
"db.customerinfoDao"
);
this
.
moneyaccountDao
=
System
.
getObject
(
"db.moneyaccountDao"
);
this
.
tlorderDao
=
System
.
getObject
(
"db.tlorderDao"
);
this
.
centerChannelUrl
=
settings
.
centerChannelUrl
();
}
...
...
@@ -349,6 +350,20 @@ class utilsTlBankSve {
result
=
"回调cusorderid参数错误,没有_标识"
;
return
result
;
}
if
(
attachList
[
0
]
&&
attachList
[
0
].
substr
(
0
,
3
)
==
"qft"
)
{
var
p
=
{
"actionProcess"
:
"actionProcess参数不"
,
"actionType"
:
"receiveCallBackNotify"
,
"actionBody"
:
{
"parmas"
:
parmas
},
"client_ip"
:
client_ip
};
var
qftstr
=
await
this
.
restClient
.
execPost
(
p
,
this
.
centerChannelUrl
+
"web/payment/paymentApi/springBoard"
);
var
qftjson
=
JSON
.
parse
(
qftstr
.
stdout
);
if
(
qftjson
.
status
>-
1
){
result
=
"success"
}
return
result
;
}
else
{
var
tmpCompanyId
=
attachList
.
length
==
2
?
attachList
[
1
]
:
attachList
[
2
];
var
payParam
=
await
this
.
companypayparamDao
.
getOneByCompanyId
(
tmpCompanyId
,
1
);
...
...
@@ -382,6 +397,7 @@ class utilsTlBankSve {
}
return
result
;
}
}
}
catch
(
e
)
{
logCtl
.
error
({
optitle
:
"通联回调业务处理---error异常"
,
...
...
@@ -445,8 +461,8 @@ class utilsTlBankSve {
throw
new
Error
(
e
.
stack
);
}
}
async
opOtherCompanyNotify
(
sveItemCode
,
orderNo
)
{
if
([
"zcdy3gy"
,
"zcdy6gy"
,
"zcdy1n"
].
indexOf
(
sveItemCode
)
>=
0
)
{
async
opOtherCompanyNotify
(
sveItemCode
,
orderNo
)
{
if
([
"zcdy3gy"
,
"zcdy6gy"
,
"zcdy1n"
].
indexOf
(
sveItemCode
)
>=
0
)
{
//TODO:操作别的公司回调
}
}
...
...
@@ -514,7 +530,7 @@ class utilsTlBankSve {
var
sqlWheres
=
{
code
:
obj
.
out_trade_no
};
var
orderItem
=
await
this
.
orderDao
.
model
.
findOne
({
where
:
sqlWheres
,
attributes
:
[
"id"
,
"code"
,
"name"
,
"sveItemCode"
,
"busPayOrderCode"
,
"totalSum"
,
"orderStatus"
,
"orderPayStatus"
,
"company_id"
,
"createuser_id"
,
"sveItemCode"
,
"sveItemName"
,
"subType"
],
attributes
:
[
"id"
,
"code"
,
"name"
,
"sveItemCode"
,
"busPayOrderCode"
,
"totalSum"
,
"orderStatus"
,
"orderPayStatus"
,
"company_id"
,
"createuser_id"
,
"sveItemCode"
,
"sveItemName"
,
"subType"
],
include
:
[
{
model
:
this
.
orderDao
.
db
.
models
.
customerinfo
,
attributes
:
[
"businessLicensePic"
,
"customerType"
,
"identityCardNo"
,
"identityCardPic"
]
}
]
...
...
@@ -525,7 +541,7 @@ class utilsTlBankSve {
return
notifyResult
;
}
//操作别的回调信息
this
.
opOtherCompanyNotify
(
orderItem
.
sveItemCode
,
obj
.
out_trade_no
);
this
.
opOtherCompanyNotify
(
orderItem
.
sveItemCode
,
obj
.
out_trade_no
);
if
(
Number
(
orderItem
.
totalSum
*
100
)
!=
Number
(
obj
.
trxamt
))
{
notifyResult
.
code
=
-
450
;
notifyResult
.
msg
=
"对应的订单支付金额不符"
;
...
...
igirl-web/app/config/settings.js
View file @
53a526b2
...
...
@@ -47,6 +47,13 @@ var settings = {
return
"http://43.247.184.94:9200/"
;
}
},
centerChannelUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://192.168.18.34:4011/"
;
}
else
{
return
"https://center-channel/"
;
}
},
apiconfig
:
{
zxyTransferAppId
:
function
()
{
//智薪云应用id
// return "1103817785";//线上
...
...
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