- only set status.Status = model.OrderStatusNew when status.Status > model.OrderStatusNew in OnOrderNew
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user