京东商城上传商品透图
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user