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
422bea8c
Commit
422bea8c
authored
Feb 16, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
d65d999f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+7
-10
No files found.
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
422bea8c
...
@@ -91,8 +91,7 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -91,8 +91,7 @@ class UtilsOrderService extends AppServiceBase {
pobj
.
actionBody
.
returl
=
this
.
tlPayNotifyUrl
;
pobj
.
actionBody
.
returl
=
this
.
tlPayNotifyUrl
;
pobj
.
actionType
=
"getH5PayUrl"
;
pobj
.
actionType
=
"getH5PayUrl"
;
var
url
=
this
.
centerAppPayUrl
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
this
.
centerAppPayUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
url
);
if
(
result
.
status
!=
0
)
{
if
(
result
.
status
!=
0
)
{
return
result
;
return
result
;
}
}
...
@@ -140,8 +139,7 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -140,8 +139,7 @@ class UtilsOrderService extends AppServiceBase {
pobj
.
actionBody
.
op_type
=
actionBody
.
opType
;
pobj
.
actionBody
.
op_type
=
actionBody
.
opType
;
pobj
.
actionType
=
"getOrderQrCode"
;
pobj
.
actionType
=
"getOrderQrCode"
;
var
getQrCodeUrl
=
this
.
centerAppUrl
+
"payment/paymentApi/getQrCode"
;
var
result
=
await
this
.
restPostUrl
(
pobj
,
this
.
centerAppPayUrl
);
var
result
=
await
this
.
restPostUrl
(
pobj
,
getQrCodeUrl
);
if
(
result
.
status
!=
0
)
{
if
(
result
.
status
!=
0
)
{
return
result
;
return
result
;
}
}
...
@@ -201,9 +199,8 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -201,9 +199,8 @@ class UtilsOrderService extends AppServiceBase {
var
payTrxid
=
opType
==
"wx"
?
receiptVoucher
.
wxPayOrderCode
:
receiptVoucher
.
aliPayOrderCode
;
var
payTrxid
=
opType
==
"wx"
?
receiptVoucher
.
wxPayOrderCode
:
receiptVoucher
.
aliPayOrderCode
;
pobj
.
actionBody
.
trxid
=
payTrxid
;
pobj
.
actionBody
.
trxid
=
payTrxid
;
pobj
.
actionType
=
"queryOrderStatus"
;
pobj
.
actionType
=
"queryOrderStatus"
;
var
url
=
this
.
centerAppUrl
+
"payment/paymentApi/queryOrder"
;
var
payStatus
=
await
this
.
restPostUrl
(
pobj
,
u
rl
);
var
payStatus
=
await
this
.
restPostUrl
(
pobj
,
this
.
centerAppPayU
rl
);
if
(
payStatus
.
data
&&
payStatus
.
data
.
trxstatus
==
"0000"
)
{
if
(
payStatus
.
data
&&
payStatus
.
data
.
trxstatus
==
"0000"
)
{
//TODO:处理支付成功的业务逻辑
//TODO:处理支付成功的业务逻辑
...
@@ -254,8 +251,8 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -254,8 +251,8 @@ class UtilsOrderService extends AppServiceBase {
if
(
actionBody
.
op_type
!=
"wx"
&&
actionBody
.
op_type
!=
"alipay"
)
{
if
(
actionBody
.
op_type
!=
"wx"
&&
actionBody
.
op_type
!=
"alipay"
)
{
return
system
.
getResult
(
null
,
"actionBody.op_type param error"
);
return
system
.
getResult
(
null
,
"actionBody.op_type param error"
);
}
}
var
url
=
this
.
centerAppUrl
+
"payment/paymentApi/getQrCode"
;
return
await
this
.
restPostUrl
(
pobj
,
u
rl
);
return
await
this
.
restPostUrl
(
pobj
,
this
.
centerAppPayU
rl
);
}
}
/**
/**
* 只是检查支付状态--不跟订单关联
* 只是检查支付状态--不跟订单关联
...
@@ -266,8 +263,8 @@ class UtilsOrderService extends AppServiceBase {
...
@@ -266,8 +263,8 @@ class UtilsOrderService extends AppServiceBase {
if
(
!
actionBody
.
trxid
)
{
if
(
!
actionBody
.
trxid
)
{
return
system
.
getResult
(
null
,
"actionBody.trxid can not be empty"
);
return
system
.
getResult
(
null
,
"actionBody.trxid can not be empty"
);
}
}
var
url
=
this
.
centerAppUrl
+
"payment/paymentApi/queryOrder"
;
return
await
this
.
restPostUrl
(
pobj
,
u
rl
);
return
await
this
.
restPostUrl
(
pobj
,
this
.
centerAppPayU
rl
);
}
}
async
receiveCallBackNotify
(
pobj
,
actionBody
)
{
//---暂时没有用到
async
receiveCallBackNotify
(
pobj
,
actionBody
)
{
//---暂时没有用到
var
url
=
this
.
centerAppUrl
+
"payment/paymentApi/receiveCallBackNotify"
;
var
url
=
this
.
centerAppUrl
+
"payment/paymentApi/receiveCallBackNotify"
;
...
...
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