|
@@ -48,13 +48,13 @@ class task_wrapper
|
|
|
}
|
|
|
}
|
|
|
public function add_time() : int {
|
|
|
- return intval($this->mRecord['add_time']);
|
|
|
+ return intval($this->mRecord['add_time']) ?? time();
|
|
|
}
|
|
|
public function act_time() : int {
|
|
|
- return intval($this->mRecord['act_time']);
|
|
|
+ return intval($this->mRecord['act_time']) ?? time();
|
|
|
}
|
|
|
public function fini_time() : int {
|
|
|
- return intval($this->mRecord['finish_time']);
|
|
|
+ return intval($this->mRecord['finish_time']) ?? time();
|
|
|
}
|
|
|
|
|
|
public static function CreateTask($data)
|