diff --git a/StocksBar.xcodeproj/project.pbxproj b/StocksBar.xcodeproj/project.pbxproj index 65d14ea..26682e1 100644 --- a/StocksBar.xcodeproj/project.pbxproj +++ b/StocksBar.xcodeproj/project.pbxproj @@ -579,7 +579,7 @@ CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 17; + CURRENT_PROJECT_VERSION = 18; DEVELOPMENT_TEAM = LX863G777H; INFOPLIST_FILE = "$(SRCROOT)/StocksBar/Supporting Files/Info.plist"; LD_RUNPATH_SEARCH_PATHS = ( @@ -587,7 +587,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.12; - MARKETING_VERSION = 1.7; + MARKETING_VERSION = 1.8; PRODUCT_BUNDLE_IDENTIFIER = me.shuifeng.StocksBar; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -604,7 +604,7 @@ CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 17; + CURRENT_PROJECT_VERSION = 18; DEVELOPMENT_TEAM = LX863G777H; INFOPLIST_FILE = "$(SRCROOT)/StocksBar/Supporting Files/Info.plist"; LD_RUNPATH_SEARCH_PATHS = ( @@ -612,7 +612,7 @@ "@executable_path/../Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 10.12; - MARKETING_VERSION = 1.7; + MARKETING_VERSION = 1.8; PRODUCT_BUNDLE_IDENTIFIER = me.shuifeng.StocksBar; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/StocksBar/Networking/SinaStocksAPI.swift b/StocksBar/Networking/SinaStocksAPI.swift index 52e2f7f..97e8d9b 100644 --- a/StocksBar/Networking/SinaStocksAPI.swift +++ b/StocksBar/Networking/SinaStocksAPI.swift @@ -74,7 +74,7 @@ class SinaStocksAPI: StocksAPI { } let code = mappedCodes.joined(separator: ",") let url = aURL.appending(code) - AF.request(url).responseData { response in + AF.request(url, headers: HTTPHeaders([HTTPHeader(name: "Referer", value: "https://finance.sina.com.cn/stock/")])).responseData { response in switch response.result { case .success(let data): //let content = String(data: data, encoding: .utf8) diff --git a/StocksBar/Storyboards/AboutWindow.storyboard b/StocksBar/Storyboards/AboutWindow.storyboard index fc0397d..4f75a3c 100644 --- a/StocksBar/Storyboards/AboutWindow.storyboard +++ b/StocksBar/Storyboards/AboutWindow.storyboard @@ -1,8 +1,8 @@ - + - + @@ -49,14 +49,14 @@ - + - +