Skip to content

Commit

Permalink
unused
Browse files Browse the repository at this point in the history
  • Loading branch information
hteen committed Sep 18, 2024
1 parent ea63236 commit 1389688
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions services/listen.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,24 +240,24 @@ func (s *listenService) getSkuByLink(ch chan map[string]bool, skUrl string) {
}

// 型号对应预约地址
func (s *listenService) model2Url(productType string) string {
// https://www.apple.com.cn/shop/buy-iphone/iphone-16
// https://www.apple.com.cn/shop/buy-iphone/iphone-16-pro

var t string
switch productType {
case "iphone16promax", "iphone16pro":
t = "iphone-16-pro"
case "iphone16":
t = "iphone-16"
}

return fmt.Sprintf(
"https://www.apple.com/%s/shop/buy-iphone/%s",
s.Area.ShortCode,
t,
)
}
//func (s *listenService) model2Url(productType string) string {
// // https://www.apple.com.cn/shop/buy-iphone/iphone-16
// // https://www.apple.com.cn/shop/buy-iphone/iphone-16-pro
//
// var t string
// switch productType {
// case "iphone16promax", "iphone16pro":
// t = "iphone-16-pro"
// case "iphone16":
// t = "iphone-16"
// }
//
// return fmt.Sprintf(
// "https://www.apple.com/%s/shop/buy-iphone/%s",
// s.Area.ShortCode,
// t,
// )
//}

func (s *listenService) openBrowser(link string) {
parse, err := url.Parse(link)
Expand Down

0 comments on commit 1389688

Please sign in to comment.