public static function dataUpdate($tb_name, array $args, $seo = false, $images = false, $primary = false) { $new_args = self::match_field($tb_name, $args); CHECK::is_array_exist($new_args); if (CHECK::is_pass()) { $new_args = array_reverse($new_args); DB::update(CORE::$prefix . "_" . $tb_name, self::content_handle($new_args), $primary); # 自動排序 if ($new_args["sort"]) { SORT::auto($tb_name, CORE::$langtag, $new_args["id"], $new_args["sort"]); } # 圖片處理 if (is_array($args["images"]) && $images) { IMAGES::modify($args["images"], $tb_name, $new_args["id"]); } if ($seo) { $args["id"] = $args["seo_id"]; SEO::modify($args); } } else { return false; } }