Commit 9721fda8e729f96ff7ca9ea54fd83c94f72dc96e
1 parent
4f42dd76
no message
Showing
4 changed files
with
19 additions
and
9 deletions
CNLiveUserSystemDemo.xcodeproj/project.pbxproj
| @@ -330,6 +330,7 @@ | @@ -330,6 +330,7 @@ | ||
| 330 | 810D9B7D1D8FCBC200B7A776 /* frameworks */ = { | 330 | 810D9B7D1D8FCBC200B7A776 /* frameworks */ = { |
| 331 | isa = PBXGroup; | 331 | isa = PBXGroup; |
| 332 | children = ( | 332 | children = ( |
| 333 | + 817C6EC21D90D60E0016F211 /* ImageIO.framework */, | ||
| 333 | 810D9B801D8FCD3200B7A776 /* libc++.tbd */, | 334 | 810D9B801D8FCD3200B7A776 /* libc++.tbd */, |
| 334 | 810D9B7E1D8FCD1900B7A776 /* libsqlite3.0.tbd */, | 335 | 810D9B7E1D8FCD1900B7A776 /* libsqlite3.0.tbd */, |
| 335 | 810D9B791D8FB7AC00B7A776 /* libz.tbd */, | 336 | 810D9B791D8FB7AC00B7A776 /* libz.tbd */, |
| @@ -420,7 +421,6 @@ | @@ -420,7 +421,6 @@ | ||
| 420 | 812642B81D86A7A800B402CA = { | 421 | 812642B81D86A7A800B402CA = { |
| 421 | isa = PBXGroup; | 422 | isa = PBXGroup; |
| 422 | children = ( | 423 | children = ( |
| 423 | - 817C6EC21D90D60E0016F211 /* ImageIO.framework */, | ||
| 424 | 812642C71D86A7A800B402CA /* AppDelegate.h */, | 424 | 812642C71D86A7A800B402CA /* AppDelegate.h */, |
| 425 | 812642C81D86A7A800B402CA /* AppDelegate.m */, | 425 | 812642C81D86A7A800B402CA /* AppDelegate.m */, |
| 426 | 810D9B7D1D8FCBC200B7A776 /* frameworks */, | 426 | 810D9B7D1D8FCBC200B7A776 /* frameworks */, |
| @@ -489,11 +489,10 @@ | @@ -489,11 +489,10 @@ | ||
| 489 | 812642F71D86A7E500B402CA /* CNLiveUserSystemSDK */ = { | 489 | 812642F71D86A7E500B402CA /* CNLiveUserSystemSDK */ = { |
| 490 | isa = PBXGroup; | 490 | isa = PBXGroup; |
| 491 | children = ( | 491 | children = ( |
| 492 | - 812642FB1D86AFE600B402CA /* CNLiveUserSystemTypeDef.h */, | ||
| 493 | - 8187A8FC1D8E90C5007FAFB6 /* CNLiveUserManager.h */, | ||
| 494 | - 8187A8FD1D8E90C5007FAFB6 /* CNLiveUserManager.m */, | ||
| 495 | 812642F81D86A83100B402CA /* CNLiveUserSystemCenter.h */, | 492 | 812642F81D86A83100B402CA /* CNLiveUserSystemCenter.h */, |
| 496 | 812642F91D86A83100B402CA /* CNLiveUserSystemCenter.m */, | 493 | 812642F91D86A83100B402CA /* CNLiveUserSystemCenter.m */, |
| 494 | + 8187A8FC1D8E90C5007FAFB6 /* CNLiveUserManager.h */, | ||
| 495 | + 8187A8FD1D8E90C5007FAFB6 /* CNLiveUserManager.m */, | ||
| 497 | 812540F51D87D9C000F32D66 /* CNLiveRegister.h */, | 496 | 812540F51D87D9C000F32D66 /* CNLiveRegister.h */, |
| 498 | 812540F61D87D9C000F32D66 /* CNLiveRegister.m */, | 497 | 812540F61D87D9C000F32D66 /* CNLiveRegister.m */, |
| 499 | 812540DB1D87916400F32D66 /* CNLiveLogin.h */, | 498 | 812540DB1D87916400F32D66 /* CNLiveLogin.h */, |
| @@ -510,6 +509,7 @@ | @@ -510,6 +509,7 @@ | ||
| 510 | 812540DF1D8792F700F32D66 /* CNLiveUserSystemTools.m */, | 509 | 812540DF1D8792F700F32D66 /* CNLiveUserSystemTools.m */, |
| 511 | 811600FF1D92929A003CAE7D /* NSDictionary+Safety.h */, | 510 | 811600FF1D92929A003CAE7D /* NSDictionary+Safety.h */, |
| 512 | 811601001D92929A003CAE7D /* NSDictionary+Safety.m */, | 511 | 811601001D92929A003CAE7D /* NSDictionary+Safety.m */, |
| 512 | + 812642FB1D86AFE600B402CA /* CNLiveUserSystemTypeDef.h */, | ||
| 513 | ); | 513 | ); |
| 514 | path = CNLiveUserSystemSDK; | 514 | path = CNLiveUserSystemSDK; |
| 515 | sourceTree = "<group>"; | 515 | sourceTree = "<group>"; |
| @@ -921,7 +921,7 @@ | @@ -921,7 +921,7 @@ | ||
| 921 | "$(PROJECT_DIR)/CNLiveUserSystemDemo/ThirdSDK/QQSDK", | 921 | "$(PROJECT_DIR)/CNLiveUserSystemDemo/ThirdSDK/QQSDK", |
| 922 | "$(PROJECT_DIR)/CNLiveUserSystemDemo/ThirdSDK/SDWebImage", | 922 | "$(PROJECT_DIR)/CNLiveUserSystemDemo/ThirdSDK/SDWebImage", |
| 923 | ); | 923 | ); |
| 924 | - GCC_PREFIX_HEADER = /Users/android/Desktop/CNLiveUserSystemDemo/CNLiveUserSystemDemo/PrefixHeader.pch; | 924 | + GCC_PREFIX_HEADER = /Users/android/Git/CNLiveUserSystem/CNLiveUserSystemDemo/PrefixHeader.pch; |
| 925 | INFOPLIST_FILE = CNLiveUserSystemDemo/Info.plist; | 925 | INFOPLIST_FILE = CNLiveUserSystemDemo/Info.plist; |
| 926 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; | 926 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; |
| 927 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; | 927 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; |
| @@ -954,7 +954,7 @@ | @@ -954,7 +954,7 @@ | ||
| 954 | "$(PROJECT_DIR)/CNLiveUserSystemDemo/ThirdSDK/QQSDK", | 954 | "$(PROJECT_DIR)/CNLiveUserSystemDemo/ThirdSDK/QQSDK", |
| 955 | "$(PROJECT_DIR)/CNLiveUserSystemDemo/ThirdSDK/SDWebImage", | 955 | "$(PROJECT_DIR)/CNLiveUserSystemDemo/ThirdSDK/SDWebImage", |
| 956 | ); | 956 | ); |
| 957 | - GCC_PREFIX_HEADER = /Users/android/Desktop/CNLiveUserSystemDemo/CNLiveUserSystemDemo/PrefixHeader.pch; | 957 | + GCC_PREFIX_HEADER = /Users/android/Git/CNLiveUserSystem/CNLiveUserSystemDemo/PrefixHeader.pch; |
| 958 | INFOPLIST_FILE = CNLiveUserSystemDemo/Info.plist; | 958 | INFOPLIST_FILE = CNLiveUserSystemDemo/Info.plist; |
| 959 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; | 959 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; |
| 960 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; | 960 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; |
CNLiveUserSystemDemo.xcodeproj/project.xcworkspace/xcuserdata/iOS.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
CNLiveUserSystemDemo/CNLiveUserSystemSDK/CNLiveUserManager.m
| @@ -49,7 +49,7 @@ | @@ -49,7 +49,7 @@ | ||
| 49 | NSString *stamp = [NSString stringWithFormat:@"%.3f", [date timeIntervalSince1970]]; | 49 | NSString *stamp = [NSString stringWithFormat:@"%.3f", [date timeIntervalSince1970]]; |
| 50 | stamp = [stamp stringByReplacingOccurrencesOfString:@"." withString:@""]; | 50 | stamp = [stamp stringByReplacingOccurrencesOfString:@"." withString:@""]; |
| 51 | 51 | ||
| 52 | - NSString *vvUrl = [NSString stringWithFormat:@"http://app.sta.cnlive.com/app.js?sver=%@&uid=%@&tm=%@&from=SDK&spid=&appid=%@&version=%@/1005_%@&eventid=1300&uri=&sid=&plat=i&objid=",kSVer,[CNLiveUserSystemTools uidForStat:date],stamp,self.appId,StatAppVersion,StatBundleVersion]; | 52 | + NSString *vvUrl = [NSString stringWithFormat:@"http://app.sta.cnlive.com/app.js?sver=%@&uid=%@&tm=%@&from=&spid=&appid=%@&version=1005_%@&eventid=1300&uri=&sid=&plat=i&objid=",kSVer,[CNLiveUserSystemTools uidForStat:date],stamp,self.appId,StatBundleVersion]; |
| 53 | 53 | ||
| 54 | [NSURLConnection connectionWithRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:vvUrl]] delegate:nil]; | 54 | [NSURLConnection connectionWithRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:vvUrl]] delegate:nil]; |
| 55 | } | 55 | } |
| @@ -63,7 +63,7 @@ | @@ -63,7 +63,7 @@ | ||
| 63 | NSString *endDate = [NSString stringWithFormat:@"%.3f",[date timeIntervalSinceDate:_startDate]]; | 63 | NSString *endDate = [NSString stringWithFormat:@"%.3f",[date timeIntervalSinceDate:_startDate]]; |
| 64 | endDate = [endDate stringByReplacingOccurrencesOfString:@"." withString:@""]; | 64 | endDate = [endDate stringByReplacingOccurrencesOfString:@"." withString:@""]; |
| 65 | 65 | ||
| 66 | - NSString *vvUrl = [NSString stringWithFormat:@"http://app.sta.cnlive.com/app.js?sver=%@&uid=%@&tm=%@&from=SDK&spid=&appid=%@&version=%@/1005_%@&eventid=1311&uri=%@&sid=&plat=i&objid=",kSVer,[CNLiveUserSystemTools uidForStat:date],stamp,self.appId,StatAppVersion,StatBundleVersion,endDate]; | 66 | + NSString *vvUrl = [NSString stringWithFormat:@"http://app.sta.cnlive.com/app.js?sver=%@&uid=%@&tm=%@&from=&spid=&appid=%@&version=1005_%@&eventid=1311&uri=%@&sid=&plat=i&objid=",kSVer,[CNLiveUserSystemTools uidForStat:date],stamp,self.appId,StatBundleVersion,endDate]; |
| 67 | 67 | ||
| 68 | [NSURLConnection connectionWithRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:vvUrl]] delegate:nil]; | 68 | [NSURLConnection connectionWithRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:vvUrl]] delegate:nil]; |
| 69 | } | 69 | } |
CNLiveUserSystemDemo/Conreollers/ViewController.m
| @@ -32,7 +32,7 @@ | @@ -32,7 +32,7 @@ | ||
| 32 | [self.view addSubview:self.tableView]; | 32 | [self.view addSubview:self.tableView]; |
| 33 | [self.tableView addSubview:self.loginBtn]; | 33 | [self.tableView addSubview:self.loginBtn]; |
| 34 | 34 | ||
| 35 | - _dataArr = @[@"通过手机号修改密码",@"更新附加信息",@"修改用户信息",@"查询用户信息"]; | 35 | + _dataArr = @[@"通过手机号修改密码",@"更新附加信息",@"修改用户信息",@"查询用户信息",@"反馈"]; |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | - (void)viewWillAppear:(BOOL)animated | 38 | - (void)viewWillAppear:(BOOL)animated |
| @@ -168,6 +168,16 @@ | @@ -168,6 +168,16 @@ | ||
| 168 | [Tools toast:error.localizedDescription]; | 168 | [Tools toast:error.localizedDescription]; |
| 169 | }]; | 169 | }]; |
| 170 | } | 170 | } |
| 171 | + | ||
| 172 | + if (indexPath.row == 5) { | ||
| 173 | + | ||
| 174 | + [CNLiveUserSystemCenter feedbackWithContentId:@"11" message:@"fhsjhifkncznshfu" success:^(id result) { | ||
| 175 | + [Tools toast:[NSString stringWithFormat:@"反馈--%@",result[@"errorMessage"]]]; | ||
| 176 | + | ||
| 177 | + } failure:^(NSError *error) { | ||
| 178 | + [Tools toast:error.localizedDescription]; | ||
| 179 | + }]; | ||
| 180 | + } | ||
| 171 | } | 181 | } |
| 172 | 182 | ||
| 173 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath | 183 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath |