上传营业资质灵异事件测试2
This commit is contained in:
@@ -408,12 +408,10 @@ func (c *PurchaseHandler) SyncQualify(ctx *jxcontext.Context, storeDetail *dao.S
|
|||||||
}
|
}
|
||||||
var qualifyList []*jdapi.QualifyItem
|
var qualifyList []*jdapi.QualifyItem
|
||||||
licenceDetail, err := api.JdPageAPI.GetCorporationInfo(storeDetail.VendorStoreID, storeDetail.LicenceCode)
|
licenceDetail, err := api.JdPageAPI.GetCorporationInfo(storeDetail.VendorStoreID, storeDetail.LicenceCode)
|
||||||
globals.SugarLogger.Debugf("SaveQualifyTest", utils.Format4Output(licenceDetail, false))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return addStoreInfo2Err(err, storeDetail.ID)
|
return addStoreInfo2Err(err, storeDetail.ID)
|
||||||
}
|
}
|
||||||
licenceURL, err := c.storeUploadImgByURL(storeDetail.VendorOrgCode, storeDetail.Licence)
|
licenceURL, err := c.storeUploadImgByURL(storeDetail.VendorOrgCode, storeDetail.Licence)
|
||||||
globals.SugarLogger.Debugf("SaveQualifyTest2", utils.Format4Output(licenceURL, false))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return addStoreInfo2Err(err, storeDetail.ID)
|
return addStoreInfo2Err(err, storeDetail.ID)
|
||||||
}
|
}
|
||||||
@@ -436,7 +434,6 @@ func (c *PurchaseHandler) SyncQualify(ctx *jxcontext.Context, storeDetail *dao.S
|
|||||||
})
|
})
|
||||||
|
|
||||||
idFrondURL, err := c.storeUploadImgByURL(storeDetail.VendorOrgCode, storeDetail.IDCardFront)
|
idFrondURL, err := c.storeUploadImgByURL(storeDetail.VendorOrgCode, storeDetail.IDCardFront)
|
||||||
globals.SugarLogger.Debugf("SaveQualifyTest3", utils.Format4Output(idFrondURL, false))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return addStoreInfo2Err(err, storeDetail.ID)
|
return addStoreInfo2Err(err, storeDetail.ID)
|
||||||
}
|
}
|
||||||
@@ -483,7 +480,7 @@ func (c *PurchaseHandler) SyncQualify(ctx *jxcontext.Context, storeDetail *dao.S
|
|||||||
}
|
}
|
||||||
globals.SugarLogger.Debug(utils.Format4Output(qualifyList, false))
|
globals.SugarLogger.Debug(utils.Format4Output(qualifyList, false))
|
||||||
if globals.EnableJdStoreWrite {
|
if globals.EnableJdStoreWrite {
|
||||||
globals.SugarLogger.Debugf("SaveQualifyTest4", utils.Format4Output(qualifyList, false))
|
globals.SugarLogger.Debugf("SaveQualifyTest4,[%v]", utils.Format4Output(qualifyList, false))
|
||||||
err = api.JdPageAPI.SaveQualify(storeDetail.VendorStoreID, jdapi.SaveQualifyActionTypeCommit, qualifyList)
|
err = api.JdPageAPI.SaveQualify(storeDetail.VendorStoreID, jdapi.SaveQualifyActionTypeCommit, qualifyList)
|
||||||
// err = api.JdPageAPI.SaveQualify(storeDetail.VendorStoreID, jdapi.SaveQualifyActionTypeSave, qualifyList)
|
// err = api.JdPageAPI.SaveQualify(storeDetail.VendorStoreID, jdapi.SaveQualifyActionTypeSave, qualifyList)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user