- only set status.Status = model.OrderStatusNew when status.Status > model.OrderStatusNew in OnOrderNew

This commit is contained in:
gazebo
2019-01-25 10:26:21 +08:00
parent 8100e2be88
commit 963d2e2622
2 changed files with 4 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ func (p *PurchaseHandler) GetStatusFromVendorStatus(vendorStatus string) int {
}
func (p *PurchaseHandler) GetOrder(vendorOrderID string) (order *model.GoodsOrder, err error) {
globals.SugarLogger.Debug(vendorOrderID)
globals.SugarLogger.Debugf("wsc GetOrder orderID:%s", vendorOrderID)
result, err := api.WeimobAPI.QueryOrderDetail(utils.Str2Int64(vendorOrderID), false)
if err != nil {
return nil, err