统一订单单状态模型
This commit is contained in:
@@ -110,8 +110,8 @@ func (h *OpenV1Handler) QueryOrder(c *gin.Context) {
|
||||
response.ServerError(c, err.Error())
|
||||
return
|
||||
}
|
||||
openlog.Info(c, "query_order ok order_no=%s status=%s payment=%s",
|
||||
order.OrderNo, order.FulfillmentStatus, order.PaymentStatus)
|
||||
openlog.Info(c, "query_order ok order_no=%s status=%s",
|
||||
order.OrderNo, order.OrderStatus)
|
||||
response.OK(c, buildOpenOrderResponse(order))
|
||||
}
|
||||
|
||||
@@ -259,8 +259,7 @@ func buildOpenOrderResponse(order *model.FulfillmentOrder) gin.H {
|
||||
data := gin.H{
|
||||
"order_no": order.OrderNo,
|
||||
"client_order_no": order.ClientOrderNo,
|
||||
"payment_status": order.PaymentStatus,
|
||||
"fulfillment_status": order.FulfillmentStatus,
|
||||
"order_status": order.OrderStatus,
|
||||
"can_fulfill": canFulfill,
|
||||
"cannot_fulfill_reason": reason,
|
||||
"product": gin.H{
|
||||
|
||||
Reference in New Issue
Block a user