This commit is contained in:
邹宗楠
2024-12-05 11:12:44 +08:00
parent 21d56935b4
commit 35cfea05ee
5 changed files with 10 additions and 3 deletions

View File

@@ -1180,7 +1180,6 @@ func GetStoresSkusNew(ctx *jxcontext.Context, storeIDs, skuIDs []int, upcs []str
dao.Rollback(db, txDB)
return nil, err
}
globals.SugarLogger.Debugf("-----tmpList := %s", utils.Format4Output(tmpList, false))
if isBySku {
skuNamesInfo.TotalCount = dao.GetLastTotalRowCount2(db, txDB)
}
@@ -2067,6 +2066,9 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs
if inSkuBind != nil && inSkuBind.Stock != nil {
skuBind.Stock = *inSkuBind.Stock
}
if inSkuBind != nil && inSkuBind.LocationCode != "" {
skuBind.LocationCode = inSkuBind.LocationCode
}
if globals.IsAddEvent {
err = AddEventDetail(db, ctx, model.OperateAdd, v.RealSkuID, model.ThingTypeSku, storeID, "", utils.Int2Str(skuBind.UnitPrice))
}

View File

@@ -199,7 +199,6 @@ func pushMTPSToTiktok(msgStatus int, order *model.Waybill, lng, lat, vendorOrgCo
}
func (c *DeliveryHandler) pushToGy(msg *mtpsapi.CallbackOrderMsg, serverType string) {
cl := http.Client{}
params := make(map[string]interface{})
params["mt_peisong_id"] = msg.MtPeisongID
params["courier_name"] = msg.CourierName
@@ -215,6 +214,7 @@ func (c *DeliveryHandler) pushToGy(msg *mtpsapi.CallbackOrderMsg, serverType str
sign := signParams(urls)
params["sign"] = sign
cl := http.Client{}
var request *http.Request
var err error
switch serverType {

View File

@@ -401,7 +401,7 @@ func (p *PurchaseHandler) AcceptOrRefuseOrder(order *model.GoodsOrder, isAcceptI
func (p *PurchaseHandler) PickupGoods(order *model.GoodsOrder, isSelfDelivery bool, userName string) (err error) {
if globals.EnableEbaiStoreWrite {
// err = api.EbaiAPI.OrderPickComplete(order.VendorOrderID)
err = api.EbaiAPI.OrderPickComplete(order.VendorOrderID)
}
if err == nil {
p.postFakeMsg(order.VendorOrderID, ebaiapi.OrderStatusAccepted)