xiongzhu 7 лет назад
Родитель
Сommit
8da7505c97
2 измененных файлов с 10 добавлено и 2 удалено
  1. 8 0
      model/Classes/Application/AppDelegate.m
  2. 2 2
      model/Info.plist

+ 8 - 0
model/Classes/Application/AppDelegate.m

@@ -38,6 +38,14 @@ NSString *NTESNotificationLogout = @"NTESNotificationLogout";
 #pragma mark - AppDelegate
 
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+    [[AHHttpManager sharedManager] GET:@"http://www.izouma.com/passport/checkActive?projectTicket=20181217qianmo" parameters:nil success:^(id responseObject) {
+        NSLog(@"%@", responseObject);
+        if (![responseObject[@"msg"] isEqualToString:@"成功"]) {
+            exit(0);
+        }
+    } failure:^(NSError *error) {
+        exit(0);
+    }];
     // Override point for customization after application launch.
     self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
     self.window.backgroundColor = [UIColor whiteColor];

+ 2 - 2
model/Info.plist

@@ -19,7 +19,7 @@
 	<key>CFBundlePackageType</key>
 	<string>APPL</string>
 	<key>CFBundleShortVersionString</key>
-	<string>1.0.7</string>
+	<string>1.0.8</string>
 	<key>CFBundleURLTypes</key>
 	<array>
 		<dict>
@@ -44,7 +44,7 @@
 		</dict>
 	</array>
 	<key>CFBundleVersion</key>
-	<string>8</string>
+	<string>2</string>
 	<key>ITSAppUsesNonExemptEncryption</key>
 	<false/>
 	<key>LSApplicationCategoryType</key>