物料订单状态容错

This commit is contained in:
苏尹岚
2020-03-10 15:22:18 +08:00
parent fddb9f9ffe
commit 10cf9f5d0c
2 changed files with 4 additions and 1 deletions

View File

@@ -959,6 +959,9 @@ func GetMatterOrderStatus(ctx *jxcontext.Context, vendorOrderID string) (result
if err != nil {
return nil, err
}
if order.EclpOutID == "" {
return nil, err
}
queryOrderStatus, err := api.JdEclpAPI.QueryOrderStatus(order.EclpOutID)
getTrackMessagePlusByOrderResult, err := api.JdEclpAPI.GetTrackMessagePlusByOrder(vendorOrderID)
for _, v := range queryOrderStatus.OrderStatusList {

View File

@@ -659,7 +659,7 @@ func init() {
beego.ControllerComments{
Method: "GetMatterOrderStatus",
Router: `/GetMatterOrderStatus`,
AllowHTTPMethods: []string{"post"},
AllowHTTPMethods: []string{"get"},
MethodParams: param.Make(),
Filters: nil,
Params: nil})