From 8dba6fe19fb5b68423cbe2af21d9c584075f0931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 19 Mar 2021 10:01:54 +0800 Subject: [PATCH] aa --- business/jxstore/tempop/tempop.go | 62 +++++++++++++++---------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 60ae9c0c7..0ec2f055c 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1761,37 +1761,37 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { v := batchItemList[0].(*model.StoreMap) detail, _ := api.JdShop2API.ShopDetail(utils.Str2Int(v.VendorStoreID)) storeDetail, _ := dao.GetStoreDetail(db, v.StoreID, model.VendorIDJDShop, "2") - var ( - url2 string - idCode string - startTime string - ) - if storeDetail.IDCardFront != "" { - data2, _, _ := jxutils.DownloadFileByURL(storeDetail.IDCardFront) - fileName := storeDetail.IDCardFront[strings.LastIndex(storeDetail.IDCardFront, "/")+1 : len(storeDetail.IDCardFront)] - url2, _ = api.JdShop2API.UploadImageNew(data2, fileName) - } else { - data2, _, _ := jxutils.DownloadFileByURL("http://image.jxc4.com/image/a9bfc170a950ab9a4c76bd10b48b222b.tem.jpg") - fileName := "a9bfc170a950ab9a4c76bd10b48b222b.tem.jpg" - url2, _ = api.JdShop2API.UploadImageNew(data2, fileName) - } - if storeDetail.IDCode == "" { - idCode = "610126198012230014" - } else { - idCode = storeDetail.IDCode - } - if storeDetail.IDValid == "" { - startTime = "2013-01-25 00:00:00" - } else { - startTime = utils.Time2Str(utils.Str2Time(storeDetail.IDValid)) - } - ex := storeDetail.IDExpire - if ex == "" { - ex = utils.Time2Str(utils.Str2Time(storeDetail.IDValid).AddDate(10, 0, 0)) - } - if !strings.Contains(ex, "00:00:00") { - ex += " 00:00:00" - } + // var ( + // url2 string + // idCode string + // startTime string + // ) + // if storeDetail.IDCardFront != "" { + // data2, _, _ := jxutils.DownloadFileByURL(storeDetail.IDCardFront) + // fileName := storeDetail.IDCardFront[strings.LastIndex(storeDetail.IDCardFront, "/")+1 : len(storeDetail.IDCardFront)] + // url2, _ = api.JdShop2API.UploadImageNew(data2, fileName) + // } else { + // data2, _, _ := jxutils.DownloadFileByURL("http://image.jxc4.com/image/a9bfc170a950ab9a4c76bd10b48b222b.tem.jpg") + // fileName := "a9bfc170a950ab9a4c76bd10b48b222b.tem.jpg" + // url2, _ = api.JdShop2API.UploadImageNew(data2, fileName) + // } + // if storeDetail.IDCode == "" { + // idCode = "610126198012230014" + // } else { + // idCode = storeDetail.IDCode + // } + // if storeDetail.IDValid == "" { + // startTime = "2013-01-25 00:00:00" + // } else { + // startTime = utils.Time2Str(utils.Str2Time(storeDetail.IDValid)) + // } + // ex := storeDetail.IDExpire + // if ex == "" { + // ex = utils.Time2Str(utils.Str2Time(storeDetail.IDValid).AddDate(10, 0, 0)) + // } + // if !strings.Contains(ex, "00:00:00") { + // ex += " 00:00:00" + // } api.JdShop2API.UpdateBasic(&jdshopapi.UpdateBasicParam{ StoreID: detail.StoreID, StoreName: detail.StoreName,