Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit c7620f6

Browse files
committed
Update reverse URL
1 parent 17f0bfb commit c7620f6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/AppleReserver/Constant.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public struct AppleURL {
1616
return URL(string: "https://reserve-prime.apple.com/\(region)/zh_\(region)/reserve/A/availability.json")!
1717
}
1818

19-
static func reserve(of region: String) -> URL {
20-
return URL(string: "https://reserve-prime.apple.com/\(region)/zh_\(region)/reserve/A/availability")!
19+
static func reserve(of region: String, store: String, part: String) -> URL {
20+
return URL(string: "https://reserve-prime.apple.com/\(region)/zh_\(region)/reserve/A/availability?&iUP=N&appleCare=N&rv=0&store=\(store)&partNumber=\(part)")!
2121
}
2222
}

Sources/AppleReserver/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct Monitor: ParsableCommand {
8282
print("\u{1B}[1A\u{1B}[KChecked for \(Monitor.count) times.")
8383
} else {
8484
results.forEach { (store: String, part: String) in
85-
print("🚨 \(Date().description(with: .current))\t\(store)\t\(part) 有货啦!!!\n\(AppleURL.reserve(of: region))")
85+
print("🚨 [\(part)] 马上预约:\(AppleURL.reserve(of: region, store: store, part: part))")
8686
}
8787
}
8888
}.catch { error in

0 commit comments

Comments
 (0)