Commit 40aa3b8c authored by Sandy's avatar Sandy

1.0.1版本

parent a5d543c6
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0.0</string> <string>1.0.1</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.0.0</string> <string>1.0.1</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>NSAppTransportSecurity</key> <key>NSAppTransportSecurity</key>
......
...@@ -2003,8 +2003,8 @@ ...@@ -2003,8 +2003,8 @@
<action selector="actionLogin:" destination="lBd-bF-h84" eventType="touchUpInside" id="Wch-vx-zMv"/> <action selector="actionLogin:" destination="lBd-bF-h84" eventType="touchUpInside" id="Wch-vx-zMv"/>
</connections> </connections>
</button> </button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="即将登录智能手表车族通请确认是本人登录" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OEh-I3-0VX"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="即将登录智能手表车族通" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OEh-I3-0VX">
<rect key="frame" x="80" y="120" width="215" height="20.5"/> <rect key="frame" x="60" y="120" width="255" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/> <fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.39995324609999999" green="0.40002685789999998" blue="0.39994865660000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color key="textColor" red="0.39995324609999999" green="0.40002685789999998" blue="0.39994865660000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
...@@ -2029,18 +2029,26 @@ ...@@ -2029,18 +2029,26 @@
<action selector="actionCancel:" destination="lBd-bF-h84" eventType="touchUpInside" id="Zfi-aL-myt"/> <action selector="actionCancel:" destination="lBd-bF-h84" eventType="touchUpInside" id="Zfi-aL-myt"/>
</connections> </connections>
</button> </button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="请确认是本人登录" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="X2c-SV-S4c">
<rect key="frame" x="118" y="148" width="139" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.39995324609999999" green="0.40002685789999998" blue="0.39994865660000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews> </subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints> <constraints>
<constraint firstItem="Ama-4z-KkS" firstAttribute="leading" secondItem="RHs-jJ-JoQ" secondAttribute="leading" constant="20" id="1H9-R2-sr2"/> <constraint firstItem="Ama-4z-KkS" firstAttribute="leading" secondItem="RHs-jJ-JoQ" secondAttribute="leading" constant="20" id="1H9-R2-sr2"/>
<constraint firstAttribute="trailing" secondItem="OEh-I3-0VX" secondAttribute="trailing" constant="80" id="AVL-sh-hq5"/> <constraint firstAttribute="trailing" secondItem="OEh-I3-0VX" secondAttribute="trailing" constant="60" id="AVL-sh-hq5"/>
<constraint firstAttribute="trailing" secondItem="Xep-hC-1Qc" secondAttribute="trailing" constant="20" id="GIZ-ls-VGJ"/> <constraint firstAttribute="trailing" secondItem="Xep-hC-1Qc" secondAttribute="trailing" constant="20" id="GIZ-ls-VGJ"/>
<constraint firstItem="OEh-I3-0VX" firstAttribute="leading" secondItem="RHs-jJ-JoQ" secondAttribute="leading" constant="80" id="RUw-ws-399"/> <constraint firstItem="OEh-I3-0VX" firstAttribute="leading" secondItem="RHs-jJ-JoQ" secondAttribute="leading" constant="60" id="RUw-ws-399"/>
<constraint firstItem="OEh-I3-0VX" firstAttribute="top" secondItem="wAK-Uc-5gC" secondAttribute="bottom" constant="100" id="WfQ-T1-V4i"/> <constraint firstItem="OEh-I3-0VX" firstAttribute="top" secondItem="wAK-Uc-5gC" secondAttribute="bottom" constant="100" id="WfQ-T1-V4i"/>
<constraint firstItem="Xep-hC-1Qc" firstAttribute="top" secondItem="Ama-4z-KkS" secondAttribute="bottom" constant="20" id="XMW-e5-RVR"/> <constraint firstItem="Xep-hC-1Qc" firstAttribute="top" secondItem="Ama-4z-KkS" secondAttribute="bottom" constant="20" id="XMW-e5-RVR"/>
<constraint firstItem="X2c-SV-S4c" firstAttribute="centerX" secondItem="OEh-I3-0VX" secondAttribute="centerX" id="fdY-rf-k8X"/>
<constraint firstItem="Xep-hC-1Qc" firstAttribute="leading" secondItem="RHs-jJ-JoQ" secondAttribute="leading" constant="20" id="lTw-Mi-dFT"/> <constraint firstItem="Xep-hC-1Qc" firstAttribute="leading" secondItem="RHs-jJ-JoQ" secondAttribute="leading" constant="20" id="lTw-Mi-dFT"/>
<constraint firstItem="Ama-4z-KkS" firstAttribute="centerY" secondItem="RHs-jJ-JoQ" secondAttribute="centerY" constant="50" id="tHV-HX-Eme"/> <constraint firstItem="Ama-4z-KkS" firstAttribute="centerY" secondItem="RHs-jJ-JoQ" secondAttribute="centerY" constant="50" id="tHV-HX-Eme"/>
<constraint firstAttribute="trailing" secondItem="Ama-4z-KkS" secondAttribute="trailing" constant="20" id="uUB-Vq-Np6"/> <constraint firstAttribute="trailing" secondItem="Ama-4z-KkS" secondAttribute="trailing" constant="20" id="uUB-Vq-Np6"/>
<constraint firstItem="X2c-SV-S4c" firstAttribute="top" secondItem="OEh-I3-0VX" secondAttribute="bottom" constant="7.5" id="vqH-f8-9CH"/>
</constraints> </constraints>
</view> </view>
</viewController> </viewController>
......
...@@ -128,16 +128,21 @@ ...@@ -128,16 +128,21 @@
GET:@"stationUser/getUpgrade" GET:@"stationUser/getUpgrade"
parameters:myDictionary parameters:myDictionary
complete:^(id response, NSError *error) { complete:^(id response, NSError *error) {
if ([response[@"code"] isEqualToNumber:@6]) { if ([response[@"code"] isEqualToNumber:@0]) {
CLog(@"本地版本:%@", version); CLog(@"本地版本:%@", version);
NSDictionary *dic = response[@"data"]; NSDictionary *dic = response[@"data"];
if ([dic isKindOfClass:[NSNull class]]) { if ([dic isKindOfClass:[NSNull class]]) {
return; return;
} }
NSString *lastestVersion = dic[@"version"]; TOAppversionEntity *appVersion = [[TOAppversionEntity alloc] initWithDictionary:dic error:nil];
BOOL isForceUpdate = [dic[@"forceupdate"] isEqualToString:@"YES"]; NSString *lastestVersion = appVersion.version;
BOOL isForceUpdate = [appVersion.forceupdate isEqualToString:@"true"];
NSString *trackViewUrl = dic[@"url"]; NSString *trackViewUrl = dic[@"url"];
if ([self version:version lessthan:lastestVersion]) { //版本号不同 if ([self version:version lessthan:lastestVersion]) { //版本号不同
NSString *alertTitle = NSString *alertTitle =
[NSString stringWithFormat:@"有新版本%@可以下载", [NSString stringWithFormat:@"有新版本%@可以下载",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment