1
This commit is contained in:
@@ -498,7 +498,6 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
|||||||
} else {
|
} else {
|
||||||
skus, err = dao.GetStoreSkus(db, vendorID, storeID, skuIDs)
|
skus, err = dao.GetStoreSkus(db, vendorID, storeID, skuIDs)
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("================skus := %s", utils.Format4Output(skus, false))
|
|
||||||
if err != nil || len(skus) == 0 {
|
if err != nil || len(skus) == 0 {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1099,7 +1099,6 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
|
|||||||
if params["adjustCount"] != nil {
|
if params["adjustCount"] != nil {
|
||||||
sqlWhere += " AND t1.adjust_count >= ?"
|
sqlWhere += " AND t1.adjust_count >= ?"
|
||||||
sqlParams = append(sqlParams, params["adjustCount"])
|
sqlParams = append(sqlParams, params["adjustCount"])
|
||||||
//globals.SugarLogger.Debugf("sqlParams params[adjustCount]=========%d", params["adjustCount"])
|
|
||||||
}
|
}
|
||||||
if mustInvoice, ok := params["mustInvoice"].(bool); ok && mustInvoice {
|
if mustInvoice, ok := params["mustInvoice"].(bool); ok && mustInvoice {
|
||||||
sqlWhere += " AND t1.invoice_taxer_id <> ''"
|
sqlWhere += " AND t1.invoice_taxer_id <> ''"
|
||||||
|
|||||||
@@ -267,7 +267,6 @@ func (p *PurchaseHandler) CreateStoreSkus(ctx *jxcontext.Context, storeID int, v
|
|||||||
isExd = false
|
isExd = false
|
||||||
customSkuID = int64(storeSku.SkuID)
|
customSkuID = int64(storeSku.SkuID)
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("=====================storesku := %s", utils.Format4Output(storeSku, false))
|
|
||||||
params := genSkuParamsFromStoreSkuInfo2(storeSku, true, isExd)
|
params := genSkuParamsFromStoreSkuInfo2(storeSku, true, isExd)
|
||||||
if globals.EnableEbaiStoreWrite {
|
if globals.EnableEbaiStoreWrite {
|
||||||
strStoreID := utils.Int2Str(storeID)
|
strStoreID := utils.Int2Str(storeID)
|
||||||
@@ -402,9 +401,7 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
|
|||||||
//if storeSku.ImgMix != "" && ((storeSku.BrandID == storeSku.ExBrandID && storeSku.ExBrandID != 0) || storeSku.ExBrandID == 0) {
|
//if storeSku.ImgMix != "" && ((storeSku.BrandID == storeSku.ExBrandID && storeSku.ExBrandID != 0) || storeSku.ExBrandID == 0) {
|
||||||
// img = storeSku.ImgMix
|
// img = storeSku.ImgMix
|
||||||
//} else {
|
//} else {
|
||||||
globals.SugarLogger.Debugf("=======================%s", utils.Format4Output(storeSku, false))
|
|
||||||
img, _ = api.EbaiAPI.PictureUpload(storeSku.Img, imgdata)
|
img, _ = api.EbaiAPI.PictureUpload(storeSku.Img, imgdata)
|
||||||
globals.SugarLogger.Debugf("=======================%s", utils.Format4Output(img, false))
|
|
||||||
//}
|
//}
|
||||||
photos := []map[string]interface{}{
|
photos := []map[string]interface{}{
|
||||||
map[string]interface{}{
|
map[string]interface{}{
|
||||||
@@ -446,7 +443,6 @@ func genSkuParamsFromStoreSkuInfo2(storeSku *dao.StoreSkuSyncInfo, isCreate, isE
|
|||||||
"photos": photos,
|
"photos": photos,
|
||||||
"preparation_time": storeSku.PreparationTime,
|
"preparation_time": storeSku.PreparationTime,
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("===============params========%s", utils.Format4Output(photos, false))
|
|
||||||
if !isExd {
|
if !isExd {
|
||||||
var categoryID = utils.Str2Int64(storeSku.VendorCatID)
|
var categoryID = utils.Str2Int64(storeSku.VendorCatID)
|
||||||
if ebaiExSkuCatMap[storeSku.SkuID] != 0 {
|
if ebaiExSkuCatMap[storeSku.SkuID] != 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user