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
49d313aa
Commit
49d313aa
authored
Jul 22, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
f9fe13bf
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
9 deletions
+16
-9
brg-user-center/app/base/api/impl/receive/entService.js
+1
-1
brg-user-center/app/base/service/impl/common/txPushLogSve.js
+4
-1
brg-user-center/app/base/service/impl/order/orderDeliverySve.js
+0
-0
brg-user-center/app/base/service/impl/order/orderInfoSve.js
+10
-6
brg-user-center/app/config/platform.js
+1
-1
No files found.
brg-user-center/app/base/api/impl/receive/entService.js
View file @
49d313aa
...
...
@@ -38,7 +38,7 @@ class EntService extends APIBase {
opResult
=
await
this
.
orderDeliverySve
.
submitDeliveryInfo
(
pobj
);
break
;
case
"updateOrderStatus"
:
//服务商修改订单交付状态
opResult
=
await
this
.
orderDeliverySve
.
updateOrderStatus
(
pobj
);
opResult
=
await
this
.
orderDeliverySve
.
updateOrderStatus
(
pobj
,
req
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
...
...
brg-user-center/app/base/service/impl/common/txPushLogSve.js
View file @
49d313aa
...
...
@@ -82,10 +82,13 @@ class TxPushLogService extends ServiceBase {
if
(
!
orderInfo
)
{
return
self
.
returnTX
(
-
1
,
"cgateway"
,
"资源不存在"
,
null
)
}
var
status
=
0
;
var
status
=
2
;
if
(
orderInfo
.
status
==
320
)
{
status
=
3
;
}
if
(
orderInfo
.
status
==
300
)
{
status
=
0
;
}
return
self
.
returnTX
(
0
,
"cgateway"
,
"ok"
,
{
"status"
:
status
})
}
...
...
brg-user-center/app/base/service/impl/order/orderDeliverySve.js
View file @
49d313aa
This diff is collapsed.
Click to expand it.
brg-user-center/app/base/service/impl/order/orderInfoSve.js
View file @
49d313aa
...
...
@@ -267,9 +267,9 @@ class OrderInfoService extends ServiceBase {
if
(
!
ispush
)
{
return
system
.
getResultSuccess
();
}
txorderdetail
.
goodsDetail
.
formInfo
.
buyTime
=
new
Date
(
txorderdetail
.
payEndTime
);
txorderdetail
.
goodsDetail
.
formInfo
.
timeSpan
=
1
;
txorderdetail
.
goodsDetail
.
formInfo
.
timeUnit
=
"y"
;
txorderdetail
.
goodsDetail
.
formInfo
.
buyTime
=
new
Date
(
txorderdetail
.
payEndTime
);
txorderdetail
.
goodsDetail
.
formInfo
.
timeSpan
=
1
;
txorderdetail
.
goodsDetail
.
formInfo
.
timeUnit
=
"y"
;
//生产者------订单推送
var
pushobj
=
{
"actionType"
:
"produceData"
,
// Y 功能名称
...
...
@@ -847,9 +847,12 @@ class OrderInfoService extends ServiceBase {
if
(
!
orderProduct
)
{
return
system
.
getResultFail
(
-
101
,
"orderProduct is empty"
);
}
if
(
orderProduct
.
status
==
320
)
{
if
(
orderProduct
.
status
==
320
)
{
return
system
.
getResultSuccess
();
}
if
(
orderProduct
.
status
==
300
)
{
return
system
.
getResultFail
(
-
301
,
"订单状态错误"
);
}
var
productType
=
"p_business_registration"
;
if
(
orderProduct
.
dataValues
.
product_type
.
indexOf
(
"/qcfw/"
)
>
-
1
)
{
productType
=
"p_vat"
;
...
...
@@ -868,12 +871,13 @@ class OrderInfoService extends ServiceBase {
"msgContent"
:
{
"type"
:
orderProduct
.
tx_order_snapshot
.
goodsDetail
.
goodsSubType
,
"dealName"
:
pobj
.
orderNum
,
"deliveryResult"
:
3
"deliveryResult"
:
3
,
"resourceIds"
:
[
pobj
.
orderNum
]
}
}
}
}
var
r
=
await
this
.
execPostByTimeOut
(
req
,
o
,
"http://msgqueue.sandbox.com"
);
var
r
=
await
this
.
execPostByTimeOut
(
req
,
o
,
"http://msgqueue.sandbox.com"
);
if
(
r
.
status
<
1
)
{
return
system
.
getResultFail
(
-
102
,
"Post error"
);
}
...
...
brg-user-center/app/config/platform.js
View file @
49d313aa
...
...
@@ -4,7 +4,7 @@ module.exports = {
push_return_type
:
{
"0"
:
"推送失败"
,
"1"
:
"推送成功"
},
pay_type
:{
"1"
:
"微信"
,
"2"
:
"qq钱包"
,
"3"
:
"网银支付"
,
"4"
:
"余额支付"
},
order_op_type
:{
"1"
:
"收"
,
"2"
:
"支"
},
order_status
:{
"0"
:
"待付款"
,
"1"
:
"已付款"
,
"310"
:
"部分已退款"
,
"320"
:
"已退款"
,
"330"
:
"已作废"
},
order_status
:{
"0"
:
"待付款"
,
"1"
:
"已付款"
,
"310"
:
"部分已退款"
,
"320"
:
"已退款"
,
"330"
:
"已作废"
,
"300"
:
"已完成"
},
order_delivery_status
:{
"1"
:
"待接单"
,
"20"
:
"已接单"
,
...
...
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