1'
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
package jdapi
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"testing"
|
||||
)
|
||||
|
||||
//
|
||||
//import (
|
||||
// "fmt"
|
||||
@@ -65,14 +71,32 @@ package jdapi
|
||||
// baseapi.SugarLogger.Debug(utils.Format4Output(imgList, false))
|
||||
//}
|
||||
//
|
||||
//func TestGetCorporationInfo(t *testing.T) {
|
||||
// imgList, err := api.GetCorporationInfo("", "92330104MA28XPXH5G")
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
// baseapi.SugarLogger.Debug(utils.Format4Output(imgList, false))
|
||||
//}
|
||||
//
|
||||
func TestGetCorporationInfo(t *testing.T) {
|
||||
imgList, err := api.GetCorporationInfo("11734851", "92331002MA2AMYKG0B")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
baseapi.SugarLogger.Debug(utils.Format4Output(imgList, false))
|
||||
}
|
||||
|
||||
func TestStoreUploadImgByURL(t *testing.T) {
|
||||
a := `http://img30.360buyimg.com/vendersettle/jfs/t1/97061/15/29750/159958/63bd13ebF6895c732/bdbe6d273b92a187.jpg`
|
||||
result, err := api.StoreUploadImgByURL(a)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestGetCorporationInfo2(t *testing.T) {
|
||||
a := `http://img30.360buyimg.com/vendersettle/jfs/t1/97061/15/29750/159958/63bd13ebF6895c732/bdbe6d273b92a187.jpg`
|
||||
imgList, err := api.GetCorporationInfo2(a)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
baseapi.SugarLogger.Debug(utils.Format4Output(imgList, false))
|
||||
}
|
||||
|
||||
//func TestGetStoreList(t *testing.T) {
|
||||
// result, err := api.GetStoreList("104.054195", "30.581782")
|
||||
// if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user