maxDataSizeDontOutput = 200 * 1024
This commit is contained in:
@@ -63,7 +63,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
maxDataSizeDontOutput = 50 * 1024
|
maxDataSizeDontOutput = 200 * 1024
|
||||||
)
|
)
|
||||||
|
|
||||||
// common api access error
|
// common api access error
|
||||||
|
|||||||
@@ -57,13 +57,18 @@ func Pointer2Float64(ptr *float64) (value float64) {
|
|||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
func Time2Pointer(value time.Time) *time.Time {
|
func Time2Pointer(value time.Time) (valuePtr *time.Time) {
|
||||||
return &value
|
if !IsTimeZero(value) {
|
||||||
|
valuePtr = &value
|
||||||
|
}
|
||||||
|
return valuePtr
|
||||||
}
|
}
|
||||||
|
|
||||||
func Pointer2Time(ptr *time.Time) (value time.Time) {
|
func Pointer2Time(ptr *time.Time) (value time.Time) {
|
||||||
if ptr != nil {
|
if ptr != nil {
|
||||||
value = *ptr
|
value = *ptr
|
||||||
|
} else {
|
||||||
|
value = DefaultTimeValue
|
||||||
}
|
}
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user