作者 邓超

x

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