Skip to content

Commit

Permalink
fix: update version to 1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
bin64 committed Dec 25, 2024
1 parent e1fb844 commit c9130d1
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions Clash Dash.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.5;
MARKETING_VERSION = 1.2.6;
PRODUCT_BUNDLE_IDENTIFIER = ym.si.clashdash;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -574,7 +574,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2.5;
MARKETING_VERSION = 1.2.6;
PRODUCT_BUNDLE_IDENTIFIER = ym.si.clashdash;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -676,7 +676,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.2.5;
MARKETING_VERSION = 1.2.6;
PRODUCT_BUNDLE_IDENTIFIER = ym.si.clashdash.WidgetExtension;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -706,7 +706,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.2.5;
MARKETING_VERSION = 1.2.6;
PRODUCT_BUNDLE_IDENTIFIER = ym.si.clashdash.WidgetExtension;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down
16 changes: 8 additions & 8 deletions Clash Dash/ViewModels/ConfigSubscriptionViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ConfigSubscriptionViewModel: ObservableObject {
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("sysauth=\(token)", forHTTPHeaderField: "Cookie")
request.setValue("sysauth=\(token); sysauth_http=\(token)", forHTTPHeaderField: "Cookie")

let command: [String: Any] = [
"method": "exec",
Expand Down Expand Up @@ -230,7 +230,7 @@ class ConfigSubscriptionViewModel: ObservableObject {
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("sysauth=\(token)", forHTTPHeaderField: "Cookie")
request.setValue("sysauth=\(token); sysauth_http=\(token)", forHTTPHeaderField: "Cookie")

// 首先获取当前订阅数量
let countCommand: [String: Any] = [
Expand Down Expand Up @@ -506,7 +506,7 @@ class ConfigSubscriptionViewModel: ObservableObject {
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("sysauth=\(token)", forHTTPHeaderField: "Cookie")
request.setValue("sysauth=\(token); sysauth_http=\(token)", forHTTPHeaderField: "Cookie")

let command: [String: Any] = [
"method": "exec",
Expand Down Expand Up @@ -570,7 +570,7 @@ class ConfigSubscriptionViewModel: ObservableObject {
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("sysauth=\(token)", forHTTPHeaderField: "Cookie")
request.setValue("sysauth=\(token); sysauth_http=\(token)", forHTTPHeaderField: "Cookie")

let command: [String: Any] = [
"method": "exec",
Expand Down Expand Up @@ -626,7 +626,7 @@ class ConfigSubscriptionViewModel: ObservableObject {
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("sysauth=\(token)", forHTTPHeaderField: "Cookie")
request.setValue("sysauth=\(token); sysauth_http=\(token)", forHTTPHeaderField: "Cookie")

let command: [String: Any] = [
"method": "exec",
Expand Down Expand Up @@ -727,7 +727,7 @@ class ConfigSubscriptionViewModel: ObservableObject {
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("sysauth=\(token)", forHTTPHeaderField: "Cookie")
request.setValue("sysauth=\(token); sysauth_http=\(token)", forHTTPHeaderField: "Cookie")

let command: [String: Any] = [
"method": "exec",
Expand Down Expand Up @@ -780,7 +780,7 @@ class ConfigSubscriptionViewModel: ObservableObject {
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("sysauth=\(token)", forHTTPHeaderField: "Cookie")
request.setValue("sysauth=\(token); sysauth_http=\(token)", forHTTPHeaderField: "Cookie")

// 删除命令
let commands = [
Expand Down Expand Up @@ -840,7 +840,7 @@ class ConfigSubscriptionViewModel: ObservableObject {
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("sysauth=\(token)", forHTTPHeaderField: "Cookie")
request.setValue("sysauth=\(token); sysauth_http=\(token)", forHTTPHeaderField: "Cookie")

let command: [String: Any] = [
"method": "exec",
Expand Down
2 changes: 1 addition & 1 deletion Clash Dash/Views/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ struct ContentView: View {
.cornerRadius(16)

// 版本信息
Text("Ver: 1.2.5")
Text("Ver: 1.2.6")
.foregroundColor(.secondary)
.font(.footnote)
.padding(.top, 8)
Expand Down
2 changes: 1 addition & 1 deletion Clash Dash/Views/Menus/RestartServiceView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ struct RestartServiceView: View {
}

var logRequest = URLRequest(url: logURL)
logRequest.setValue("sysauth_http=\(token)", forHTTPHeaderField: "Cookie")
logRequest.setValue("sysauth_http=\(token); sysauth=\(token)", forHTTPHeaderField: "Cookie")

let (logData, _) = try await URLSession.shared.data(for: logRequest)
let logResponse = try JSONDecoder().decode(StartLogResponse.self, from: logData)
Expand Down
2 changes: 1 addition & 1 deletion Clash Dash/Views/Menus/Rules/OpenClashRulesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ struct OpenClashRulesView: View {
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("sysauth=\(token)", forHTTPHeaderField: "Cookie")
request.setValue("sysauth=\(token); sysauth_http=\(token)", forHTTPHeaderField: "Cookie")

let command: [String: Any] = [
"method": "exec",
Expand Down
2 changes: 1 addition & 1 deletion Debug/get_openclash_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Pragma: no-cache"
Accept-Language: en-US,en;q=0.9
Cache-Control: no-cache
Connection: keep-alive
Cookie: sysauth_http=$token
Cookie: sysauth_http=$token; sysauth=$token
DNT: 1
Pragma: no-cache
Upgrade-Insecure-Requests: 1"
Expand Down

0 comments on commit c9130d1

Please sign in to comment.