mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-05 17:42:49 +08:00
完成新的更新逻辑
This commit is contained in:
@@ -104,6 +104,13 @@ class PathToolsBase
|
||||
return str_replace('/', '\\', $content);
|
||||
}
|
||||
|
||||
/**
|
||||
* 比较两个文件是否相同
|
||||
*
|
||||
* @param string $a
|
||||
* @param string $b
|
||||
* @return boolean 如果一致返回true,否则返回false
|
||||
*/
|
||||
public static function compareFiles($a, $b):bool
|
||||
{
|
||||
if (file_exists($a) !== file_exists($b)) {
|
||||
|
||||
Reference in New Issue
Block a user