京东商城上传商品透图

This commit is contained in:
苏尹岚
2020-05-26 14:08:18 +08:00
parent 697fda029e
commit d011e53203
4 changed files with 37 additions and 3 deletions

View File

@@ -408,3 +408,19 @@ func ConvertDistanceToLogLat(lng, lat, distance, angle float64) (newLng, newLat
newLat = lat + (distance*math.Cos(angle*math.Pi/180))/oneDu //将距离转换成纬度的计算公式
return newLng, newLat
}
func TestFindWareById(t *testing.T) {
err := api.FindWareById(14546096098)
if err != nil {
t.Fatal(err)
}
// t.Log(utils.Format4Output(result, false))
}
func TestTransparentImageAdd(t *testing.T) {
// err := api.TransparentImageAdd(wareId, imageUrl)
// if err != nil {
// t.Fatal(err)
// }
// t.Log(utils.Format4Output(result, false))
}