diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 0f42c9dd9..1716ef11a 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1788,12 +1788,13 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor dao.Commit(db, txDB) globals.SugarLogger.Debug("检查一下isStoreMapNeedSync(vendorID, valid)=============%s", isStoreMapNeedSync(vendorID, valid)) if isStoreMapNeedSync(vendorID, valid) { - globals.SugarLogger.Debugf("1.isStoreMapNeedSync(vendorID, valid)=================%v", isStoreMapNeedSync(vendorID, valid)) + globals.SugarLogger.Debug("1.isStoreMapNeedSync(vendorID, valid)=================", isStoreMapNeedSync(vendorID, valid)) _, err = CurVendorSync.SyncStore(ctx, db, vendorID, storeID, false, userName) globals.SugarLogger.Debug("CurVendorSync.SyncStore:err======%v", err) } } } + globals.SugarLogger.Info("utils.IsNil(errList)==============", utils.IsNil(errList)) globals.SugarLogger.Debug("errList============", utils.Format4Output(errList, true)) return num, errors.New(fmt.Sprintf("errList=%v,err=%v", utils.Format4Output(errList, true), err)) } diff --git a/business/partner/purchase/tiktok_store/warehouse.go b/business/partner/purchase/tiktok_store/warehouse.go index 4c3a33f93..2ec9ccd37 100644 --- a/business/partner/purchase/tiktok_store/warehouse.go +++ b/business/partner/purchase/tiktok_store/warehouse.go @@ -244,6 +244,7 @@ func GetFence(appOrgCode, outFenceID string) (warehouse_getFences_response.Fence //单独处理运费模板 func FreightSpecialTreat(vendorOrgCode string, vendorStoreID, storeID int64) error { var ( + errStr []string errList = errlist.New() FreightTemplate = &model.FreightTemplate{} db *dao.DaoDB @@ -270,6 +271,8 @@ func FreightSpecialTreat(vendorOrgCode string, vendorStoreID, storeID int64) err } else { if err := UpdateFreightTemplate(vendorOrgCode, int(storeID)); err != nil { globals.SugarLogger.Debug("更新运费模板失败:", err) + errStr = append(errStr, fmt.Sprintf("%v", err)) + globals.SugarLogger.Debug("检查是否可行errStr=============", errStr) errList.AddErr(fmt.Errorf("更新运费模板失败:%v", err)) } } @@ -280,6 +283,7 @@ func FreightSpecialTreat(vendorOrgCode string, vendorStoreID, storeID int64) err _, err1 := dao.UpdateEntity(db, FreightTemplate, "TemplateID") errList.AddErr(fmt.Errorf("同步进数据库错误信息:%v", err1)) } - globals.SugarLogger.Debugf("errList===============%s", utils.Format4Output(errList, true)) - return errors.New(fmt.Sprintf("errList=%s,err=%v", utils.Format4Output(errList, true), err)) + globals.SugarLogger.Info("utils.IsNil(errList)==============", utils.IsNil(errList)) + globals.SugarLogger.Debugf("errList===============%s", utils.Format4Output(errList, false)) + return errors.New(fmt.Sprintf("errList=%s,err=%v", utils.Format4Output(errList, false), err)) }