log delete
This commit is contained in:
@@ -1,50 +1,51 @@
|
||||
package q_bida
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"go.uber.org/zap"
|
||||
"testing"
|
||||
)
|
||||
|
||||
var (
|
||||
api *Api
|
||||
sugarLogger *zap.SugaredLogger
|
||||
)
|
||||
|
||||
func init() {
|
||||
logger, _ := zap.NewDevelopment()
|
||||
sugarLogger = logger.Sugar()
|
||||
baseapi.Init(sugarLogger)
|
||||
}
|
||||
|
||||
// 获取登录
|
||||
func TestLogin(t *testing.T) {
|
||||
api := NewQBiDa("18048531223", "18080188338")
|
||||
fmt.Println("api=========", api.expirationTime)
|
||||
fmt.Println("api=========", api.password)
|
||||
fmt.Println("api=========", api.account)
|
||||
fmt.Println("api=========", api.token)
|
||||
}
|
||||
|
||||
// 获取所有的快递费接口
|
||||
func TestGatAllFee(t *testing.T) {
|
||||
api := NewQBiDa("18048531223", "18080188338")
|
||||
result, err := api.GetExpressPrice(&GetExpressPriceReq{
|
||||
PromiseTimeType: 0,
|
||||
DeliveryType: 0,
|
||||
GoodsValue: 1000,
|
||||
SendAddress: "四川省成都市金牛区二环北路一段10号万科加州湾V派616",
|
||||
ReceiveAddress: "北京市北京市朝阳区容达路7号太极产业园",
|
||||
Type: 0,
|
||||
Weight: 1,
|
||||
Length: 100,
|
||||
Height: 100,
|
||||
Width: 100,
|
||||
SendPhone: "18981810340",
|
||||
})
|
||||
globals.SugarLogger.Debug("err===", err)
|
||||
globals.SugarLogger.Debug("data===", &result)
|
||||
|
||||
}
|
||||
//
|
||||
//import (
|
||||
// "fmt"
|
||||
// "git.rosy.net.cn/baseapi"
|
||||
// "git.rosy.net.cn/jx-callback/globals"
|
||||
// "go.uber.org/zap"
|
||||
// "testing"
|
||||
//)
|
||||
//
|
||||
//var (
|
||||
// api *Api
|
||||
// sugarLogger *zap.SugaredLogger
|
||||
//)
|
||||
//
|
||||
//func init() {
|
||||
// logger, _ := zap.NewDevelopment()
|
||||
// sugarLogger = logger.Sugar()
|
||||
// baseapi.Init(sugarLogger)
|
||||
//}
|
||||
//
|
||||
//// 获取登录
|
||||
//func TestLogin(t *testing.T) {
|
||||
// api := NewQBiDa("18048531223", "18080188338")
|
||||
// fmt.Println("api=========", api.expirationTime)
|
||||
// fmt.Println("api=========", api.password)
|
||||
// fmt.Println("api=========", api.account)
|
||||
// fmt.Println("api=========", api.token)
|
||||
//}
|
||||
//
|
||||
//// 获取所有的快递费接口
|
||||
//func TestGatAllFee(t *testing.T) {
|
||||
// api := NewQBiDa("18048531223", "18080188338")
|
||||
// result, err := api.GetExpressPrice(&GetExpressPriceReq{
|
||||
// PromiseTimeType: 0,
|
||||
// DeliveryType: 0,
|
||||
// GoodsValue: 1000,
|
||||
// SendAddress: "四川省成都市金牛区二环北路一段10号万科加州湾V派616",
|
||||
// ReceiveAddress: "北京市北京市朝阳区容达路7号太极产业园",
|
||||
// Type: 0,
|
||||
// Weight: 1,
|
||||
// Length: 100,
|
||||
// Height: 100,
|
||||
// Width: 100,
|
||||
// SendPhone: "18981810340",
|
||||
// })
|
||||
// globals.SugarLogger.Debug("err===", err)
|
||||
// globals.SugarLogger.Debug("data===", &result)
|
||||
//
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user