This commit is contained in:
richboo111
2023-09-08 14:54:43 +08:00
parent 7af6a77d9b
commit f52ffa5a89
3 changed files with 27 additions and 7 deletions

View File

@@ -387,10 +387,14 @@ func TestCategoryAttrList(t *testing.T) {
//特殊属性查询
func TestCategoryAttrValueList(t *testing.T) {
result, err := api.CategoryAttrValueList(1200000088, "散装糖果")
result, err := api.CategoryAttrValueList(1200000088, "【常用调味】干花椒 红花椒 ")
if len(result) > 0 {
fmt.Println("jejeje")
}
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}

View File

@@ -20,7 +20,7 @@ const (
DefaultVersion = 19 //参照文档主版本号填写 如文档版本号1.9,version=19推荐使用版本19
)
//各城市正式店铺id
// SFCityStoreIDs 各城市正式店铺id
var SFCityStoreIDs = map[string]string{
"怀化市": "3270454065601",
"郴州市": "3270454085329",
@@ -51,7 +51,7 @@ var SFCityStoreIDs = map[string]string{
"许昌市": "3270458247585",
"开封市": "3270458296977",
"商丘市": "3270641341457",
"驻马市": "3270641372769",
"驻马市": "3270641372769",
"新乡市": "3270641398977",
"信阳市": "3270641464177",
"安阳市": "3270641489553",
@@ -67,6 +67,20 @@ var SFCityStoreIDs = map[string]string{
"承德市": "3270459200625",
"秦皇岛市": "3270459223617",
"张家口市": "3270459240321",
"武汉市": "3270468391969",
"襄阳市": "3270468418785",
"宜昌市": "3270468434017",
"荆州市": "3270468445137",
"荆门市": "3270468456545",
"孝感市": "3270468472897",
"鄂州店": "3270527285137",
"黄石市": "3270527303521",
"南宁市": "3270650685793",
"桂林市": "3270650714881",
"三亚市": "3270650742017",
"海口市": "3270650813681",
"柳州市": "3270650844193",
"北海市": "3270650890577",
}
const (

View File

@@ -138,10 +138,12 @@ func TestUpdateStoreTest(t *testing.T) {
}
func TestShopUpdateStatus(t *testing.T) {
err := apiTao.ShopUpdateStatus("JX667321", 1)
if err != nil {
fmt.Println(err)
}
value := int(172736400)
fmt.Println(float64(value) / 1000000)
//err := apiTao.ShopUpdateStatus("JX667321", 1)
//if err != nil {
// fmt.Println(err)
//}
}
func TestSFStore(t *testing.T) {