mirror of
https://gitee.com/dromara/carbon.git
synced 2024-12-01 19:58:07 +08:00
更新注释信息
This commit is contained in:
parent
4454eb844a
commit
a08087e583
@ -33,7 +33,7 @@ func (c *Carbon) UnmarshalJSON(b []byte) error {
|
||||
if c.Error != nil {
|
||||
return c.Error
|
||||
}
|
||||
if string(b) == "null" || len(b) == 0 {
|
||||
if len(b) == 0 || string(b) == "null" {
|
||||
return nil
|
||||
}
|
||||
key, value, tz := c.parseTag()
|
||||
|
Loading…
Reference in New Issue
Block a user