Commit 3281cc6c authored by 曹云霄's avatar 曹云霄

修改项说明:修改Packaging.sh文件

parent 22fa30c2
......@@ -252,7 +252,7 @@
EmigratedFinishViewController *finish = [[[self class] getLearningCenterStoryboardClass] instantiateViewControllerWithIdentifier:@"EmigratedFinishViewController"];
finish.delegate = self;
finish.preferredContentSize = CGSizeMake(520, 400);
if (self.emigrated.passGrade > allScore) {
if (self.emigrated.passGrade > allScore && ![state isEqualToString:@"2"]) {
finish.state = ZERO;
finish.score = [NSString stringWithFormat:@"%ld",allScore];
[self showPopoverView:finish];
......
......@@ -96,8 +96,9 @@
- (void)selectApplicableAction:(UITapGestureRecognizer *)sender
{
TOPassLevelEntity *entity = self.emigratedResponse.passLevelEntity[sender.view.tag];
if ([[self class] compareDateString:entity.endDate]) {
[XBLoadingView showHUDViewWithText:@"已过期"];return;
}
AnswerViewController *answer = [[[self class] getLearningCenterStoryboardClass] instantiateViewControllerWithIdentifier:@"AnswerViewController"];
answer.delegate = self;
answer.passLevelId = entity.fid;
......
......@@ -4,7 +4,7 @@
# 工程名
APP_NAME="Lighting"
# 电脑用户名
USER_NAME="caoyunxiao"
USER_NAME="z"
# 证书
CODE_SIGN_DISTRIBUTION="iPhone Distribution: Shanghai Gomore Information Technology Co.,Ltd"
......
......@@ -576,7 +576,7 @@
+ (BOOL)compareDateString:(NSString *)dateString
{
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
[dateFormatter setDateFormat:@"yyyy-MM-dd 23:59:59"];
NSDate *endDate = [dateFormatter dateFromString:dateString];
if ([endDate compare:[NSDate date]] == NSOrderedAscending) {
return YES;
......
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