Steven 1 year ago
parent
commit
8275633792

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

@@ -451,8 +451,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];
@@ -461,8 +460,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
KulexiuForTeacher/KulexiuForTeacher/Common/Tools/Extension/NSString+Extension.m

@@ -372,8 +372,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]];
 }

+ 8 - 0
KulexiuForTeacher/KulexiuForTeacher/Module/Home/NotiferMessage/Controller/NotiferMessageViewController.m

@@ -17,6 +17,7 @@
 #import "NotiferNavView.h"
 #import "MyMusicViewController.h"
 #import "UserInfoManager.h"
+#import "FeedbackListViewController.h"
 
 @interface NotiferMessageViewController ()<UITableViewDelegate, UITableViewDataSource>
 
@@ -269,6 +270,9 @@
                     MyMusicViewController *musicCtrl = [[MyMusicViewController alloc] init];
                     [self.navigationController pushViewController:musicCtrl animated:YES];
                 }
+                else if ([pageType isEqualToString:@"feedback"]) { //反馈
+                    [self toFeedback];
+                }
             }
             else {
                 NSString *webUrl = [dict ks_stringValueForKey:@"url"];
@@ -283,6 +287,10 @@
     }
 }
 
+- (void)toFeedback {
+    FeedbackListViewController *ctrl = [[FeedbackListViewController alloc] init];
+    [self.navigationController pushViewController:ctrl animated:YES];
+}
 - (void)toCourseTable {
     [self selectBarHomeWithIndex:1];
     [self.navigationController popToRootViewControllerAnimated:YES];