public function add_cover($act_id, $img_path) { $table = new ActivityTable(); return $table->update_thumbnail_time($act_id, $img_path, date('Y-m-d H:i:s')); }