Commit a11223f7 authored by rlgy's avatar rlgy

bugfixed

parent 0c648d3a
......@@ -57,10 +57,9 @@ class AppController extends BaseController
if (isset($post['log'])) {
$log_str = $post['log'];
$log_arr = explode("\n", $log_str);
$log_json = json_encode($log_arr);
$model->log = $log_json;
$model->log = $log_arr;
}
$model->save();
$model->save(false);
return ['code' => 0, 'msg' => 'succeed'];
}
$errors = $model->errors;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment