Steven 1 год назад
Родитель
Сommit
cc68812727

+ 2 - 2
KulexiuForStudent/KulexiuForStudent.xcodeproj/project.pbxproj

@@ -5354,11 +5354,11 @@
 		BC31BECA2B21925700F7D538 /* Model */ = {
 			isa = PBXGroup;
 			children = (
-				BC31BECB2B21925700F7D538 /* MetronomeManager.m */,
 				BC31BECC2B21925700F7D538 /* KSMetronomePlayer.h */,
-				BC31BECD2B21925700F7D538 /* TuningFunction */,
 				BC31BED22B21925700F7D538 /* KSMetronomePlayer.m */,
 				BC31BED32B21925700F7D538 /* MetronomeManager.h */,
+				BC31BECB2B21925700F7D538 /* MetronomeManager.m */,
+				BC31BECD2B21925700F7D538 /* TuningFunction */,
 			);
 			path = Model;
 			sourceTree = "<group>";

+ 2 - 2
KulexiuForStudent/KulexiuForStudent/AppDelegate.m

@@ -220,8 +220,8 @@
     /* 设置微信的appKey和appSecret */
     [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_WechatSession appKey:@"wx97408cd22c879ff7" appSecret:@"d3f119b577ccacb262da153f4210174f" redirectURL:nil];
     /*
-         * 移除相应平台的分享,如微信收藏
-         */
+     * 移除相应平台的分享,如微信收藏
+     */
     [[UMSocialManager defaultManager] removePlatformProviderWithPlatformTypes:@[@(UMSocialPlatformType_WechatFavorite)]];
     /* 设置sina */
     [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_Sina appKey:@"3712190405"  appSecret:@"e77924e0125dbd751bab61063d8338fb" redirectURL:nil];

+ 2 - 4
KulexiuForStudent/KulexiuForStudent/Common/Tools/Extension/NSDate+Extension.m

@@ -469,8 +469,7 @@
 }
 
 - (NSString *)stringWithFormat:(NSString *)format {
-    NSDateFormatter *outputFormatter = [[NSDateFormatter alloc] init];
-    outputFormatter.timeZone = [NSTimeZone systemTimeZone];
+    NSDateFormatter *outputFormatter = [NSObject getDateformatter];
     [outputFormatter setDateFormat:format];
     
     NSString *retStr = [outputFormatter stringFromDate:self];
@@ -479,8 +478,7 @@
 }
 
 + (NSDate *)dateWithString:(NSString *)string dateFormat:(NSString *)format {
-    NSDateFormatter *inputFormatter = [[NSDateFormatter alloc] init];
-    inputFormatter.timeZone = [NSTimeZone systemTimeZone];
+    NSDateFormatter *inputFormatter = [NSObject getDateformatter];
     [inputFormatter setDateFormat:format];
     
     NSDate *date = [inputFormatter dateFromString:string];

+ 1 - 2
KulexiuForStudent/KulexiuForStudent/Common/Tools/Extension/NSString+Extension.m

@@ -371,8 +371,7 @@
  */
 + (NSString *)getCurrentTime {
     
-    NSDateFormatter *format = [[NSDateFormatter alloc] init];
-    format.timeZone = [NSTimeZone systemTimeZone];
+    NSDateFormatter *format = [NSObject getDateformatter];
     format.dateFormat = @"yyyy-MM-dd HH:mm:ss";
     return  [format stringFromDate:[NSDate date]];
 }

+ 1 - 2
KulexiuForStudent/KulexiuForStudent/Module/Chat/Group/View/GroupApplyChooseCell.m

@@ -47,8 +47,7 @@
         self.timeLabel.text = @"";
     }
     else {
-        NSDateFormatter *dateFormatter=[[NSDateFormatter alloc] init];
-        dateFormatter.timeZone = [NSTimeZone systemTimeZone];
+        NSDateFormatter *dateFormatter=[NSObject getDateformatter];
         [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
         NSDate *messageDate = [dateFormatter dateFromString:source.updateTime];
         [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm"];

+ 1 - 2
KulexiuForStudent/KulexiuForStudent/Module/Chat/Group/View/GroupApplyMemberCell.m

@@ -44,8 +44,7 @@
         self.timeLabel.text = @"";
     }
     else {
-        NSDateFormatter *dateFormatter=[[NSDateFormatter alloc] init];
-        dateFormatter.timeZone = [NSTimeZone systemTimeZone];
+        NSDateFormatter *dateFormatter = [NSObject getDateformatter];
         [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
         NSDate *messageDate = [dateFormatter dateFromString:source.updateTime];
         [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm"];