21 lines
438 B
Go
21 lines
438 B
Go
package jdapi
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.rosy.net.cn/baseapi"
|
|
)
|
|
|
|
func TestGetRealMobileNumber4Order(t *testing.T) {
|
|
orderId := "900658736000042"
|
|
desiredMobile := "18569035610"
|
|
mobile, err := jdapi.GetRealMobile4Order(orderId)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if mobile != desiredMobile {
|
|
t.Fatalf("orderId:%s's mobile is wrong, should be 18569035610, but it's:%s", orderId, desiredMobile)
|
|
}
|
|
baseapi.SugarLogger.Debug(mobile)
|
|
}
|