作者 邓超

x

... ... @@ -200,6 +200,7 @@ trait DbQuery {
if($timeauto){
$data['created_at'] = empty($data['created_at']) ? date('Y-m-d H:i:s') : $data['created_at'];
$data['updated_at'] = empty($data['updated_at']) ? date('Y-m-d H:i:s') : $data['updated_at'];
}
$sql = "insert into `{$table}` set ".dbUpdate($data);
... ...