mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-05-03 12:17:57 +08:00
fix(core): 修复 SaFoxUtil.joinSharpParam
方法中不正确的注释
This commit is contained in:
parent
f424908743
commit
248fd0c3b6
@ -443,15 +443,15 @@ public class SaFoxUtil {
|
||||
url = "";
|
||||
}
|
||||
int index = url.lastIndexOf('#');
|
||||
// ? 不存在
|
||||
// # 不存在
|
||||
if(index == -1) {
|
||||
return url + '#' + paramStr;
|
||||
}
|
||||
// ? 是最后一位
|
||||
// # 是最后一位
|
||||
if(index == url.length() - 1) {
|
||||
return url + paramStr;
|
||||
}
|
||||
// ? 是其中一位
|
||||
// # 是其中一位
|
||||
if(index < url.length() - 1) {
|
||||
String separatorChar = "&";
|
||||
// 如果最后一位是 不是&, 且 paramStr 第一位不是 &, 就赠送一个 &
|
||||
|
Loading…
Reference in New Issue
Block a user