This commit is contained in:
邹宗楠
2025-02-20 17:09:06 +08:00
parent b78aae3c0a
commit 10b84b91d9
3 changed files with 6 additions and 21 deletions

View File

@@ -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而不是空01538103149不是特殊值只是一个任意之前的时间这样写可以处理
return utils.DefaultTimeValue
}
return utils.Timestamp2Time(timeStamp)
}
func TestOrderAgreePartRefund(t *testing.T) {
param := &RefundOrderExamine{
ReverseOrderId: "",