aa
This commit is contained in:
@@ -98,30 +98,14 @@ var (
|
||||
},
|
||||
EbaiSupplierIDgy: &tEbaiSupplierInfo{
|
||||
SupplierID: EbaiSupplierIDgy,
|
||||
Logo: "https://fuss10.elemecdn.com/1/34/c6d76d8e3aa86cf214e6bff5514c1jpeg.jpeg",
|
||||
Logo: "https://fuss10.elemecdn.com/7/21/a4b2877a916e1af6c5bdbf5945d51jpeg.jpeg",
|
||||
Categorys: []map[string]interface{}{
|
||||
map[string]interface{}{
|
||||
"category1": 277,
|
||||
"category2": 180,
|
||||
},
|
||||
map[string]interface{}{
|
||||
"category1": 277,
|
||||
"category2": 184,
|
||||
},
|
||||
map[string]interface{}{
|
||||
"category1": 277,
|
||||
"category2": 183,
|
||||
},
|
||||
map[string]interface{}{
|
||||
"category1": 277,
|
||||
"category2": 181,
|
||||
},
|
||||
map[string]interface{}{
|
||||
"category1": 277,
|
||||
"category2": 182,
|
||||
"category1": 274,
|
||||
"category2": 190,
|
||||
},
|
||||
},
|
||||
BusinessFormID: 1917869373,
|
||||
BusinessFormID: 1917867465,
|
||||
BrandName: "京西果园",
|
||||
},
|
||||
}
|
||||
@@ -682,9 +666,6 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
||||
param["phone"] = phone
|
||||
param["ivr_phone"] = phone
|
||||
param["service_phone"] = storeDetail.Tel1
|
||||
// param["phone"] = "18160030913"
|
||||
// param["ivr_phone"] = "18160030913"
|
||||
// param["service_phone"] = "18160030913"
|
||||
param["address"] = storeDetail.Address
|
||||
param["longitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lng)
|
||||
param["latitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lat)
|
||||
@@ -804,13 +785,13 @@ func (c *PurchaseHandler) SyncQualify(ctx *jxcontext.Context, storeDetail *dao.S
|
||||
idMap["license_number"] = storeDetail.IDCode
|
||||
idMap["legal_representative_name"] = storeDetail.IDName
|
||||
idMap["license_name"] = storeDetail.IDName
|
||||
// idCardFront, _ := api.EbaiAPI.PictureUpload(storeDetail.IDCardFront, nil)
|
||||
// idCardBack, _ := api.EbaiAPI.PictureUpload(storeDetail.IDCardBack, nil)
|
||||
// idCardHand, _ := api.EbaiAPI.PictureUpload(storeDetail.IDCardHand, nil)
|
||||
idCardFront, _ := api.EbaiAPI.PictureUpload(storeDetail.IDCardFront, nil)
|
||||
idCardBack, _ := api.EbaiAPI.PictureUpload(storeDetail.IDCardBack, nil)
|
||||
idCardHand, _ := api.EbaiAPI.PictureUpload(storeDetail.IDCardHand, nil)
|
||||
|
||||
idCardFront, _ := api.EbaiAPI.PictureUpload("http://image.jxc4.com/image/db790784e3a06202d00706c3141035dd.jpg", nil)
|
||||
idCardBack, _ := api.EbaiAPI.PictureUpload("http://image.jxc4.com/image/45a7aae6758edb33f5dc2656358b1afb.jpg", nil)
|
||||
idCardHand, _ := api.EbaiAPI.PictureUpload("http://image.jxc4.com/image/2d47385bbcb211bb08c8c0b76f5b7a21.jpg", nil)
|
||||
// idCardFront, _ := api.EbaiAPI.PictureUpload("http://image.jxc4.com/image/db790784e3a06202d00706c3141035dd.jpg", nil)
|
||||
// idCardBack, _ := api.EbaiAPI.PictureUpload("http://image.jxc4.com/image/45a7aae6758edb33f5dc2656358b1afb.jpg", nil)
|
||||
// idCardHand, _ := api.EbaiAPI.PictureUpload("http://image.jxc4.com/image/2d47385bbcb211bb08c8c0b76f5b7a21.jpg", nil)
|
||||
idMap["photos"] = []map[string]interface{}{
|
||||
map[string]interface{}{
|
||||
"photo_url": idCardFront,
|
||||
|
||||
@@ -97,6 +97,18 @@ func (p *PurchaseHandler) CreateStore(db *dao.DaoDB, storeID int, userName strin
|
||||
}
|
||||
|
||||
func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName string, params map[string]interface{}, storeDetail *dao.StoreDetail) (vendorStoreID string, err error) {
|
||||
poiSettleSaveParam := &mtwmapi.PoiSettleSaveParam{
|
||||
Type: 0, //创建
|
||||
ApplyInfos: []*mtwmapi.ApplyInfo{
|
||||
&mtwmapi.ApplyInfo{
|
||||
MultiPoiBasicInfo: &mtwmapi.MultiPoiBasicInfo{
|
||||
Name: params["vendorStoreName"].(string),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
mtapi := getAPI(storeDetail.VendorOrgCode, storeDetail.ID, "")
|
||||
mtapi.PoiSettleSave(poiSettleSaveParam)
|
||||
return vendorStoreID, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user