时间由指针改回对象

This commit is contained in:
hoteas
2022-10-20 09:08:23 +08:00
parent 56f4911459
commit ea932a032b
7 changed files with 883 additions and 880 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func (that *Obj) ToInt(err ...Error) int {
return ObjToInt(that.Data, &that.Error)
}
func (that *Obj) ToTime(err ...Error) *time.Time {
func (that *Obj) ToTime(err ...Error) time.Time {
if len(err) != 0 {
that.Error = err[0]
}