From 13896885459c32d9a9da83985d26e2c7cb192491 Mon Sep 17 00:00:00 2001 From: hteen Date: Wed, 18 Sep 2024 17:50:17 +0800 Subject: [PATCH] unused --- services/listen.go | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/services/listen.go b/services/listen.go index b40003d..fe6481b 100644 --- a/services/listen.go +++ b/services/listen.go @@ -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)