|
|
|
|
@@ -3,7 +3,6 @@ package mtwmapi
|
|
|
|
|
import (
|
|
|
|
|
"encoding/json"
|
|
|
|
|
"fmt"
|
|
|
|
|
"git.rosy.net.cn/jx-callback/globals"
|
|
|
|
|
"io/ioutil"
|
|
|
|
|
"net/http"
|
|
|
|
|
"strings"
|
|
|
|
|
@@ -261,15 +260,23 @@ func (a *API) PoiSettleSave(poiSettleSaveParam *PoiSettleSaveParam) (vendorStore
|
|
|
|
|
"type": poiSettleSaveParam.Type,
|
|
|
|
|
"apply_info": string(data),
|
|
|
|
|
})
|
|
|
|
|
globals.SugarLogger.Debugf("========data := %s", string(data))
|
|
|
|
|
globals.SugarLogger.Debugf("========result := %s", utils.Format4Output(result, false))
|
|
|
|
|
globals.SugarLogger.Debugf("========err := %v", err)
|
|
|
|
|
if err == nil {
|
|
|
|
|
vendorStoreID = result.(map[string]interface{})["success_list"].([]interface{})[0].(map[string]interface{})["app_poi_code"].(string)
|
|
|
|
|
}
|
|
|
|
|
return vendorStoreID, err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//func (a *API) PoiSettleSave2222() (vendorStoreID string, err error) {
|
|
|
|
|
// result, err := a.AccessAPI3("ecommerce/poi/settle/multi/save", false, map[string]interface{}{
|
|
|
|
|
// "type": 0,
|
|
|
|
|
// "apply_info": `[{"app_poi_code":"669387","settlement_id":0,"multi_poi_basic_info":{"name":"京西菜市(优乐购)","city":"南京","address":"南京市六合区大厂街道宁六路366-7号","longitude":"118.742342","latitude":"32.230126","first_tag":"13030000","call_center":"18981810340","contact_name":"赵宇","contact_phone":"18981810340","ecommerce_account_phone":"18048531223","shipping_time":"07:00-19:00"},"multi_poi_cert_infos":[{"is_long_time":0,"type":1,"license_name":"门脸图","license_pic":"https://image.jxc4.com/image/bde4712a92fbf35f002e0960a46bad12.jpg"},{"is_long_time":0,"type":2,"license_name":"环境图","license_pic":"https://image.jxc4.com/image/8bfa70de3eb667d1edcb1c33b3adb4f8.jpg"},{"is_long_time":1,"type":5,"license_address":"南京市六合区大厂街道宁六路366-7号","license_legal_person":"赵宇","license_name":"营业执照","license_register_date":"2024-06-14","license_check_organization":"南京市江北新区管理委员会市场监督管理局","license_check_date":"2024-06-14","license_number":"92320191MADM6X3Y0MM","license_social_credit_code":"92320191MADM6X3Y0MM","license_pic":"https://image.jxc4.com/image/e585db68bc1675b83a2fc79705d42751.jpg","license_valid_start_date":"2024-06-14"},{"is_long_time":0,"type":6,"license_address":"南京市六合区大厂街道宁六路366-7号","license_legal_person":"赵宇","license_name":"食品经营许可证","license_number":"YB23201190095426","license_social_credit_code":"YB23201190095426","license_pic":"https://image.jxc4.com/image/84c3894a73cd06d337e6c3a82ca4e318.jpg","license_validity":"2024-06-14","license_valid_start_date":"2029-12-12"}],"multi_poi_shipping_info":{"shipping_type":5,"min_price":0,"shipping_fee":0}}]`,
|
|
|
|
|
// })
|
|
|
|
|
// if err == nil {
|
|
|
|
|
// vendorStoreID = result.(map[string]interface{})["success_list"].([]interface{})[0].(map[string]interface{})["app_poi_code"].(string)
|
|
|
|
|
// }
|
|
|
|
|
// return vendorStoreID, err
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
type PoiSettleCategoryListResult struct {
|
|
|
|
|
SingleCategoryTree []struct {
|
|
|
|
|
LevelOneName string `json:"level_one_name"`
|
|
|
|
|
|