添加美团服务商,和自动获取品牌
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
@@ -218,6 +219,18 @@ func TestGetJdUpcCodeByName(t *testing.T) {
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestGetAllCities(t *testing.T) {
|
||||
citys, err := api.GetAllCities()
|
||||
globals.SugarLogger.Debug("=========err %v", err)
|
||||
globals.SugarLogger.Debug("=========len %d", len(citys))
|
||||
for _, v := range citys {
|
||||
if v.AreaName == "通辽市" {
|
||||
}
|
||||
globals.SugarLogger.Debugf("=========data %s", utils.Format4Output(v, false))
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//func TestGetJdSkuDirectPrice(t *testing.T) {
|
||||
// result, err := api.GetJdSkuDirectPrice(31031)
|
||||
// fmt.Println("test1", result, err)
|
||||
|
||||
Reference in New Issue
Block a user