From b76404d31d63a2f00643f44cd439d15719578b6d Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 4 Feb 2020 14:26:13 +0800 Subject: [PATCH] up --- business/partner/purchase/jd/store.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/business/partner/purchase/jd/store.go b/business/partner/purchase/jd/store.go index 549a3553a..997540924 100644 --- a/business/partner/purchase/jd/store.go +++ b/business/partner/purchase/jd/store.go @@ -386,7 +386,10 @@ func (c *PurchaseHandler) storeUploadImgByURL(vendorOrgCode, inImgURL string) (i func addStoreInfo2Err(err error, storeID int) error { if err != nil { - errExt := utils.NewErrorCode(err.Error(), "999") + errExt, _ := err.(*utils.ErrorWithCode) + if errExt == nil { + errExt = utils.NewErrorCode(err.Error(), "999") + } errExt.AddPrefixMsg(fmt.Sprintf("门店%d", storeID)) err = errExt }