aa
This commit is contained in:
@@ -2,7 +2,6 @@ package jdapi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math"
|
||||
"regexp"
|
||||
"strings"
|
||||
"testing"
|
||||
@@ -176,7 +175,11 @@ func TestGetJdStoreLevel(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetJdUpcCodeByName(t *testing.T) {
|
||||
api.GetJdUpcCodeByName("", "6952395700895", 2, 5)
|
||||
result, err := api.GetJdUpcCodeByName("", "6920174736731", 1, 5)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestGetJdSkuDirectPrice(t *testing.T) {
|
||||
@@ -290,13 +293,12 @@ func TestExcuteInvoking(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPeiZhiJdZhangHao(t *testing.T) {
|
||||
// for k, v := range interfaceMap {
|
||||
// if err := api.UpdateInterStatus(k, v[0].(string), v[1].(int)); err == nil {
|
||||
// if err2 := api.SaveMsgUrl(k, "http://callback.test.jxc4.com", "http://callback-jxgy.jxc4.com", v[1].(int)); err2 == nil {
|
||||
// if err3 := api.ExcuteInvoking(k, v[1].(int)); err3 == nil {
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
fmt.Println(utils.Str2Float64(fmt.Sprintf("%.2f", math.Pi*utils.Str2Float64WithDefault("3000", 0)/float64(1000)*utils.Str2Float64WithDefault("3000", 0)/float64(1000))))
|
||||
for k, v := range interfaceMap {
|
||||
if err := api.UpdateInterStatus(k, v[0].(string), v[1].(int)); err == nil {
|
||||
if err2 := api.SaveMsgUrl(k, "http://callback.test.jxc4.com", "http://callback.jxc4.com", v[1].(int)); err2 == nil {
|
||||
if err3 := api.ExcuteInvoking(k, v[1].(int)); err3 == nil {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user