Commit 5057c0e6 authored by zhuwei's avatar zhuwei

模型优化

parent c3731410
...@@ -23,6 +23,10 @@ class ASuperviseModel extends Model ...@@ -23,6 +23,10 @@ class ASuperviseModel extends Model
} }
public function saveSupervise($data) { public function saveSupervise($data) {
$time = date("Y-m-d h:i:sa", time());
$data['create_time'] = $time;
$data['update_time'] = $time;
return $this->insert($data); return $this->insert($data);
} }
......
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