1
This commit is contained in:
@@ -39,24 +39,6 @@ func TestOrderGet(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestNamegetTimeFromInterface1(t *testing.T) {
|
||||
fmt.Println((1 & 4) != 0) // 删除
|
||||
fmt.Println((1 & 2) != 0) // 创建
|
||||
fmt.Println((1 & 1) != 0) // 更新
|
||||
}
|
||||
func getTimeFromInterface1(timeValue interface{}) time.Time {
|
||||
var timeStamp int64
|
||||
if timeStr, ok := timeValue.(string); ok {
|
||||
timeStamp = utils.Str2Int64WithDefault(timeStr, 0)
|
||||
} else {
|
||||
timeStamp = utils.Interface2Int64WithDefault(timeValue, 0)
|
||||
}
|
||||
if timeStamp < 1538103149 { // 立即达订单给的是1(而不是空,0),1538103149不是特殊值,只是一个任意之前的时间,这样写可以处理
|
||||
return utils.DefaultTimeValue
|
||||
}
|
||||
return utils.Timestamp2Time(timeStamp)
|
||||
}
|
||||
|
||||
func TestOrderAgreePartRefund(t *testing.T) {
|
||||
param := &RefundOrderExamine{
|
||||
ReverseOrderId: "",
|
||||
|
||||
Reference in New Issue
Block a user