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
095d4493
Commit
095d4493
authored
Mar 25, 2021
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
4f913b08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
center-channel/app/base/api/impl/opaction/order.js
+4
-3
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
+3
-1
No files found.
center-channel/app/base/api/impl/opaction/order.js
View file @
095d4493
...
...
@@ -32,7 +32,7 @@ class ProductAPI extends WEBBase {
case
"addOrder"
:
//创建订单
opResult
=
await
this
.
utilsOrderSve
.
addOrder
(
pobj
,
pobj
.
actionBody
);
//处理推送到峰擎
// opType:值为query、add
// opType:值为query、add
this
.
pushNewFq
(
pobj
,
opResult
);
break
;
case
"addOrderWeb"
:
//创建订单 官网
...
...
@@ -93,10 +93,10 @@ class ProductAPI extends WEBBase {
opResult
=
await
this
.
utilsOrderSve
.
pushTest
(
pobj
,
pobj
.
actionBody
);
break
;
case
"receiveAliTmOrder"
:
//接收阿里商标订单
opResult
=
await
this
.
utilsOrderSve
.
receiveAliTmOrder
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utilsOrderSve
.
receiveAliTmOrder
(
pobj
,
pobj
.
actionBody
);
break
;
case
"receiveAliTmOrderRefund"
:
//接收阿里商标订单退款信息
opResult
=
await
this
.
utilsOrderSve
.
receiveAliTmOrderRefund
(
pobj
,
pobj
.
actionBody
);
opResult
=
await
this
.
utilsOrderSve
.
receiveAliTmOrderRefund
(
pobj
,
pobj
.
actionBody
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
...
...
@@ -106,6 +106,7 @@ class ProductAPI extends WEBBase {
}
async
pushNewFq
(
pobj
,
result
)
{
this
.
execClientNew
.
execLogs
(
"pushNewFq-1"
,
pobj
,
"center-channel-order-pushNewFq"
,
result
,
null
);
if
(
result
.
status
==
0
&&
result
.
data
&&
result
.
data
.
channelOrderNo
)
{
try
{
pobj
.
actionType
=
"getOrderInfoByChannelOrderNo"
;
...
...
center-channel/app/base/service/impl/utilsSve/utilsOrderSve.js
View file @
095d4493
...
...
@@ -25,6 +25,7 @@ class UtilsOrderService extends AppServiceBase {
async
pushNewFqByChannelOrderNo
(
pobj
)
{
let
url
=
this
.
centerOrderUrl
+
"opaction/order/springBoard"
;
let
opResult
=
await
this
.
restPostUrl
(
pobj
,
url
);
this
.
execClientNew
.
execLogs
(
"pushNewFq-2"
,
pobj
,
"center-channel-utilsOrderSve-pushNewFqByChannelOrderNo"
,
opResult
,
null
);
if
(
opResult
.
status
==
0
)
{
opResult
.
data
.
appInfo
=
{
uapp_id
:
appInfo
.
uapp_id
,
...
...
@@ -41,6 +42,7 @@ class UtilsOrderService extends AppServiceBase {
appInfo
:
opResult
.
data
.
appInfo
,
actionBody
:
opResult
.
data
}
this
.
execClientNew
.
execLogs
(
"pushNewFq-3"
,
tmpPobj
,
"center-channel-utilsOrderSve-pushNewFqByChannelOrderNo-pushBusInfo"
,
"pushOrder"
,
null
);
this
.
utilsPushSve
.
pushBusInfo
(
tmpPobj
,
"pushOrder"
,
1
);
}
}
...
...
@@ -67,7 +69,7 @@ class UtilsOrderService extends AppServiceBase {
}
var
buyTotalSum
=
Number
(
actionBody
.
totalSum
||
0
);
var
buyPayTotalSum
=
Number
(
actionBody
.
payTotalSum
||
0
);
this
.
execClientNew
.
execLogs
(
"isOrderVerify-
4"
,
{
buyTotalSum
:
buyTotalSum
,
buyPayTotalSum
:
buyPayTotalSum
,
totalSum
:
totalSum
},
"center-channel-utilsOrderSve-isOrderVerify"
,
actionBody
,
null
);
this
.
execClientNew
.
execLogs
(
"isOrderVerify-
5"
,
actionBody
,
"center-channel-utilsOrderSve-isOrderVerify"
,
null
,
null
);
if
(
buyTotalSum
===
0
)
{
buyTotalSum
=
totalSum
;
actionBody
.
totalSum
=
totalSum
;
...
...
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