26 lines
614 B
Go
26 lines
614 B
Go
package ali_logistics_query
|
|
|
|
import (
|
|
"fmt"
|
|
"git.rosy.net.cn/baseapi/utils"
|
|
"git.rosy.net.cn/jx-callback/globals"
|
|
"testing"
|
|
)
|
|
|
|
var (
|
|
appKey = "23537670"
|
|
appSecret = "4a77a431c0bf01f6dfa63d1a1ec9ecd2"
|
|
appCode = "00a6eefba0204d3fa310ac0ee7a6fc54"
|
|
)
|
|
|
|
func Test(t *testing.T) {
|
|
api := New(appKey, appSecret, appCode)
|
|
result, err := api.GetLogisticsInfo("78652277511810")
|
|
globals.SugarLogger.Debugf("result======== %s", utils.Format4Output(result, false))
|
|
globals.SugarLogger.Debugf("err======== %s", utils.Format4Output(err, false))
|
|
}
|
|
|
|
func TestSkuStatus(t *testing.T) {
|
|
fmt.Println(2&(4|2|1) != 0)
|
|
}
|