修改 URI 检查逻辑为更灵活匹配
将对 URI 的检查从使用 `AbsolutePath` 属性改为使用 `Contains` 方法,以便更灵活地匹配 URI 中的字符串。这意味着现在只要 URI 中包含 "/webcast/room/create" 字符串,就会继续执行后续代码,而不再严格要求路径完全匹配。
This commit is contained in:
@@ -228,7 +228,7 @@ namespace BarrageGrab.Proxy
|
|||||||
var processid = e.HttpClient.ProcessId.Value;
|
var processid = e.HttpClient.ProcessId.Value;
|
||||||
var processName = base.GetProcessName(processid);
|
var processName = base.GetProcessName(processid);
|
||||||
var response = e.HttpClient.Response;
|
var response = e.HttpClient.Response;
|
||||||
if (urix.AbsolutePath != "/webcast/room/create/") return;
|
if (!uri.Contains("/webcast/room/create")) return;
|
||||||
if (processName != "直播伴侣") return;
|
if (processName != "直播伴侣") return;
|
||||||
if (response.StatusCode != 200) return;
|
if (response.StatusCode != 200) return;
|
||||||
var reponse = await e.GetResponseBodyAsString();
|
var reponse = await e.GetResponseBodyAsString();
|
||||||
|
|||||||
Reference in New Issue
Block a user