1
This commit is contained in:
@@ -17,9 +17,20 @@ func TestOrderViewStatus(t *testing.T) {
|
||||
}
|
||||
t.Log(result)
|
||||
}
|
||||
func TestTimne(t *testing.T) {
|
||||
|
||||
fmt.Println(utils.Interface2Int64WithDefault(1695292241, 0))
|
||||
fmt.Println(getTimeFromTimestamp(utils.Interface2Int64WithDefault(1695292241, 0)))
|
||||
}
|
||||
func getTimeFromTimestamp(timeStamp int64) time.Time {
|
||||
if timeStamp < 1538103149 { // 立即达订单给的是1(而不是空,0),1538103149不是特殊值,只是一个任意之前的时间,这样写可以处理
|
||||
return utils.DefaultTimeValue
|
||||
}
|
||||
return utils.Timestamp2Time(timeStamp)
|
||||
}
|
||||
|
||||
func TestOrderGetOrderDetail(t *testing.T) {
|
||||
result, err := api.OrderGetOrderDetail(1100692033635137950, false)
|
||||
result, err := api.OrderGetOrderDetail(1000732590328335860, false)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user