* Fix bugs of product api.

This commit is contained in:
zhujinyong
2021-09-10 08:35:03 +08:00
parent 90839a8c94
commit d2b43d2a2f
6 changed files with 27 additions and 12 deletions

View File

@@ -529,6 +529,9 @@ class baseEntry
return gmdate("Y-m-d\TH:i:s\Z", strtotime($value));
}
return $value;
case 'date':
if(!$value or $value == '0000-00-00') return null;
return $value;
case 'bool':
return boolval($value) ? true : false;
default: