mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-23 02:58:14 -05:00
Compare commits
2 Commits
7dc7e45e5f
...
772e375ac5
Author | SHA1 | Date | |
---|---|---|---|
|
772e375ac5 | ||
|
ff77b2b5e1 |
@ -120,10 +120,9 @@ class Helper
|
|||||||
$subscribeUrl = self::replaceByPattern($subscribeUrl);
|
$subscribeUrl = self::replaceByPattern($subscribeUrl);
|
||||||
if (strpos($subscribeUrl, "*") !== false) {
|
if (strpos($subscribeUrl, "*") !== false) {
|
||||||
$subscribeUrl = str_replace("*", $randstr, $subscribeUrl);
|
$subscribeUrl = str_replace("*", $randstr, $subscribeUrl);
|
||||||
} elseif (strpos($subscribeUrl, '{uuid}') !== false) {
|
} elseif (strpos($subscribeUrl, "[uuid]") !== false) {
|
||||||
$user = User::where('token', $token)->first();
|
$user = User::where('token', $token)->first();
|
||||||
$subscribeUrl = str_replace('{uuid}', $user->uuid, $subscribeUrl);
|
$subscribeUrl = str_replace("*", $user->uuid, $subscribeUrl);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return $subscribeUrl ? rtrim($subscribeUrl, '/') . $path : url($path);
|
return $subscribeUrl ? rtrim($subscribeUrl, '/') . $path : url($path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user