作者 唐旭辉

,

@@ -116,6 +116,10 @@ func (s SyncOrderService) SyncOrderFromBestshop(cmd command.CreateOrderFromBests @@ -116,6 +116,10 @@ func (s SyncOrderService) SyncOrderFromBestshop(cmd command.CreateOrderFromBests
116 if err != nil { 116 if err != nil {
117 return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error()) 117 return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error())
118 } 118 }
  119 + if cmd.PartnerId <= 0 {
  120 + logs.Info("[SyncOrderFromBestshop] PartnerId<=0 ,不复制订单数据")
  121 + return nil
  122 + }
119 err = s.copyOrderBestshopToOrderBase(&order) 123 err = s.copyOrderBestshopToOrderBase(&order)
120 return err 124 return err
121 } 125 }