改进Hook类 改进Model类时间戳写入

This commit is contained in:
thinkphp
2016-12-18 08:21:35 +08:00
parent 0fe0edb80e
commit e2ab86b962
2 changed files with 107 additions and 104 deletions

View File

@@ -326,7 +326,8 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
$value = date($format, $_SERVER['REQUEST_TIME']);
break;
case 'timestamp':
case 'int':
case 'integer':
default:
$value = $_SERVER['REQUEST_TIME'];
break;
}