Skip to content

Commit

Permalink
1. 解决因服务器端HTML页面修改造成的假死问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
lunarfire committed May 6, 2016
1 parent 0d4e825 commit 9fcbab9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions CC98Lite.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
PROVISIONING_PROFILE = "f912936d-a9bc-4588-8ff0-eeb43f048a2d";
PROVISIONING_PROFILE = "2d508dcb-2471-4072-8c3d-614ef20ae85a";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -940,7 +940,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = NO;
PROVISIONING_PROFILE = "f912936d-a9bc-4588-8ff0-eeb43f048a2d";
PROVISIONING_PROFILE = "2d508dcb-2471-4072-8c3d-614ef20ae85a";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
Expand All @@ -959,7 +959,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.iZJU.MyCC98;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "f912936d-a9bc-4588-8ff0-eeb43f048a2d";
PROVISIONING_PROFILE = "2d508dcb-2471-4072-8c3d-614ef20ae85a";
TARGETED_DEVICE_FAMILY = 1;
};
name = Debug;
Expand All @@ -976,7 +976,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.iZJU.MyCC98;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "f912936d-a9bc-4588-8ff0-eeb43f048a2d";
PROVISIONING_PROFILE = "2d508dcb-2471-4072-8c3d-614ef20ae85a";
TARGETED_DEVICE_FAMILY = 1;
};
name = Release;
Expand Down
Binary file not shown.
4 changes: 3 additions & 1 deletion CC98Lite/Models/CC98Forum.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ - (void)commonPartitionsWithBlock:(void (^)(NSArray *partitions, NSError *error)
partition.numberOfBoards = [[match firstMatchRegex:PARTITION_BOARDS_NUM_REGEX] integerValue];
partition.identifier = [match firstMatchRegex:PARTITION_ID_REGEX];

[tempPartitions addObject:partition];
if (partition.name != nil) {
[tempPartitions addObject:partition];
}
}
if (block) { block([NSArray arrayWithArray:tempPartitions], nil); }

Expand Down
2 changes: 1 addition & 1 deletion CC98Lite/Utilities/CC98RegexRepository.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import <Foundation/Foundation.h>

#define PARTITION_WRAPPER_REGEX @"<td class=\"tablebody1 td-border-1\"(.|\\r|\\n|\\t)*?</span></td>"
#define PARTITION_WRAPPER_REGEX @"<td class=\"tablebody1 td-border-1\"(.|\\r|\\n|\\t)*?</td>"
#define PARTITION_NAME_REGEX @"(?<=color: #000066;\">).*?(?=</span>)"
#define PARTITION_BOARDS_NUM_REGEX @"(?<=个下属论坛\">)\\d{1,3}(?=</span>)"
#define PARTITION_ID_REGEX @"(?<=<a href=\"list.asp\\?boardid=)[0-9]+(?=\">)"
Expand Down

0 comments on commit 9fcbab9

Please sign in to comment.