|
|
@@ -460,4 +460,12 @@ class stringUtil
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //生成唯一的文件名称 shish 2020.1.7
|
|
|
+ //参考 https://www.cnblogs.com/yjf512/p/9057229.html
|
|
|
+ //https://www.cnblogs.com/roluce/p/6026081.html
|
|
|
+ public static function uniqueFileName()
|
|
|
+ {
|
|
|
+ return md5(uniqid(mt_rand(), true));
|
|
|
+ }
|
|
|
+
|
|
|
}
|