- jd.GetStoreOrderInfo
This commit is contained in:
20
platformapi/jdapi/store_page_test.go
Normal file
20
platformapi/jdapi/store_page_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user