更新时间格式bug
This commit is contained in:
@@ -17,7 +17,9 @@ class Model extends Base{
|
||||
protected $auto = [ 'update_time', 'field_sort', 'attribute_list'];
|
||||
protected $insert = ['name', 'create_time', 'status'=>1];
|
||||
protected $type = array(
|
||||
'id' => 'integer'
|
||||
'id' => 'integer',
|
||||
'create_time' => 'integer',
|
||||
'update_time' => 'integer'
|
||||
);
|
||||
|
||||
public function setFieldSortAttr($value){
|
||||
|
||||
@@ -20,6 +20,7 @@ class User extends Base{
|
||||
|
||||
protected $type = array(
|
||||
'uid' => 'integer',
|
||||
'reg_time' => 'integer'
|
||||
);
|
||||
protected $insert = array('salt', 'password', 'status', 'reg_time');
|
||||
protected $update = array();
|
||||
|
||||
Reference in New Issue
Block a user