diff --git a/platformapi/platformapi.go b/platformapi/platformapi.go index e305d9d5..d6dbbf0e 100644 --- a/platformapi/platformapi.go +++ b/platformapi/platformapi.go @@ -63,7 +63,7 @@ const ( ) const ( - maxDataSizeDontOutput = 50 * 1024 + maxDataSizeDontOutput = 200 * 1024 ) // common api access error diff --git a/utils/utils_type.go b/utils/utils_type.go index 1e9e7f91..8f74479f 100644 --- a/utils/utils_type.go +++ b/utils/utils_type.go @@ -57,13 +57,18 @@ func Pointer2Float64(ptr *float64) (value float64) { return value } -func Time2Pointer(value time.Time) *time.Time { - return &value +func Time2Pointer(value time.Time) (valuePtr *time.Time) { + if !IsTimeZero(value) { + valuePtr = &value + } + return valuePtr } func Pointer2Time(ptr *time.Time) (value time.Time) { if ptr != nil { value = *ptr + } else { + value = DefaultTimeValue } return value }