drew 6 ani în urmă
părinte
comite
8562b47598

+ 5 - 5
model.xcodeproj/project.pbxproj

@@ -3042,7 +3042,7 @@
 					9EC8710F20FAE7190087746C = {
 						CreatedOnToolsVersion = 8.0;
 						DevelopmentTeam = 99T6ZUAFCD;
-						ProvisioningStyle = Automatic;
+						ProvisioningStyle = Manual;
 						SystemCapabilities = {
 							com.apple.Push = {
 								enabled = 1;
@@ -3716,14 +3716,14 @@
 				CODE_SIGN_IDENTITY = "Apple Development";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 1;
+				CURRENT_PROJECT_VERSION = 4;
 				DEVELOPMENT_TEAM = 99T6ZUAFCD;
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 				GCC_PREFIX_HEADER = "$(SRCROOT)/model/Classes/Application/ModelPrefix.pch";
 				INFOPLIST_FILE = model/Info.plist;
 				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
-				MARKETING_VERSION = 1.0.9;
+				MARKETING_VERSION = 1.1.1;
 				PRODUCT_BUNDLE_IDENTIFIER = com.chmo.model;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PROVISIONING_PROFILE = "";
@@ -3741,14 +3741,14 @@
 				CODE_SIGN_IDENTITY = "Apple Development";
 				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
 				CODE_SIGN_STYLE = Manual;
-				CURRENT_PROJECT_VERSION = 1;
+				CURRENT_PROJECT_VERSION = 4;
 				DEVELOPMENT_TEAM = 99T6ZUAFCD;
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 				GCC_PREFIX_HEADER = "$(SRCROOT)/model/Classes/Application/ModelPrefix.pch";
 				INFOPLIST_FILE = model/Info.plist;
 				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
 				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
-				MARKETING_VERSION = 1.0.9;
+				MARKETING_VERSION = 1.1.1;
 				PRODUCT_BUNDLE_IDENTIFIER = com.chmo.model;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PROVISIONING_PROFILE = "";

+ 12 - 15
model/Classes/Controllers/MyWalletVC/BindPhoneController.m

@@ -215,26 +215,23 @@
 }
 
 - (void)getVerifyCode {
-    NSString *sn = @"SDK-FHD-010-00328";
-    //NSString *md5Pwd = [MD5String md5String:[NSString stringWithFormat:@"%@%@",sn,password]];
-    NSString *Md5Pwd = @"54774CB6E781A142206F756B3E18142C";
     int a = arc4random() % 100000;
-
     randomCode = [NSString stringWithFormat:@"%06d", a];
 
-    NSString *content = [NSString stringWithFormat:@"【千模科技】您正在进行提现账号绑定,验证码%@,5分钟内有效。请勿泄露。来千模多挣钱,有钱日子天天过年。非本人操作,请勿理会。", randomCode];
-
-    NSString *str = [NSString stringWithFormat:@"http://sdk.entinfo.cn:8061/mdsmssend.ashx?sn=%@&pwd=%@&mobile=%@&content=%@&ext=&stime=&rrid=&msgfmt=", sn, Md5Pwd, phoneNum, content];
-
+    NSString *str = [NSString stringWithFormat:@"%@/model?action=sendsms&phone=%@&code=%@", PublicUrl, phoneNum, randomCode];
+    
     AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
     manager.responseSerializer = [AFHTTPResponseSerializer serializer];
-    [manager GET:[str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding] parameters:nil success:^(NSURLSessionDataTask *task, id responseObject) {
-        NSString *result = [[NSString alloc] initWithData:responseObject encoding:NSUTF8StringEncoding];
-
-        NSLog(@"%@", result);
-    }    failure:^(NSURLSessionDataTask *task, NSError *error) {
-        NSLog(@"%@", error);
-    }];
+    [manager GET:str
+      parameters:nil
+         success:^(NSURLSessionDataTask *task, id responseObject) {
+             NSString *result = [[NSString alloc] initWithData:responseObject encoding:NSUTF8StringEncoding];
+
+             NSLog(@"%@", result);
+         }
+         failure:^(NSURLSessionDataTask *task, NSError *error) {
+             NSLog(@"%@", error);
+         }];
 }
 
 //获取验证码按钮开始倒计时响应事件

+ 4 - 1
model/Classes/Controllers/View/TableDefaultCell.m

@@ -7,6 +7,7 @@
 //  标题 + 内容 cell
 
 #import "TableDefaultCell.h"
+#import <objc/runtime.h>
 
 @implementation TableDefaultCell
 
@@ -35,7 +36,9 @@
     contentTF.textAlignment = NSTextAlignmentLeft;
     contentTF.font = [UIFont systemFontOfSize:16];
     contentTF.textColor = RGBValueColor(0x333333, 1.0);
-    [contentTF setValue:RGBValueColor(0x999999, 1.0) forKeyPath:@"_placeholderLabel.textColor"];
+    Ivar ivar =  class_getInstanceVariable([UITextField class], "_placeholderLabel");
+    UILabel *placeholderLabel = object_getIvar(contentTF, ivar);
+    placeholderLabel.textColor = RGBValueColor(0x999999, 1.0);
     contentTF.clearButtonMode = UITextFieldViewModeWhileEditing;
     [self.contentView addSubview:contentTF];
     self.contentTF = contentTF;

+ 4 - 1
model/Classes/Controllers/View/TableWithVerificationCodeCell.m

@@ -7,6 +7,7 @@
 //  带获取验证码的cell
 
 #import "TableWithVerificationCodeCell.h"
+#import <objc/runtime.h>
 
 @implementation TableWithVerificationCodeCell
 
@@ -35,7 +36,9 @@
     contentTF.textAlignment = NSTextAlignmentLeft;
     contentTF.font = [UIFont systemFontOfSize:16];
     contentTF.textColor = RGBValueColor(0x333333, 1.0);
-    [contentTF setValue:RGBValueColor(0x999999, 1.0) forKeyPath:@"_placeholderLabel.textColor"];
+    Ivar ivar =  class_getInstanceVariable([UITextField class], "_placeholderLabel");
+    UILabel *placeholderLabel = object_getIvar(contentTF, ivar);
+    placeholderLabel.textColor = RGBValueColor(0x999999, 1.0);
     contentTF.clearButtonMode = UITextFieldViewModeWhileEditing;
     [self.contentView addSubview:contentTF];
     self.contentTF = contentTF;

+ 1 - 23
model/Classes/Public/RegisterViewController.m

@@ -224,35 +224,13 @@
 }
 
 - (void)getNum {
-    NSString *sn = @"SDK-FHD-010-00328";
-    //NSString *md5Pwd = [MD5String md5String:[NSString stringWithFormat:@"%@%@",sn,password]];
-    NSString *Md5Pwd = @"54774CB6E781A142206F756B3E18142C";
     int a = arc4random() % 100000;
 
     randomCode = [NSString stringWithFormat:@"%06d", a];
 
-    NSString *content = [NSString stringWithFormat:@"【千模科技】验证码%@,快注册,你的人生即将开挂,更快挣钱,更多代言和影视表演机会都在千模。非本人操作,请勿理会。", randomCode];
+//    NSString *content = [NSString stringWithFormat:@"【千模科技】验证码%@,快注册,你的人生即将开挂,更快挣钱,更多代言和影视表演机会都在千模。非本人操作,请勿理会。", randomCode];
 
     NSString *str = [NSString stringWithFormat:@"%@/model?action=sendsms&phone=%@&code=%@", PublicUrl, phoneNum, randomCode];
-//    NSString *str = @"";
-    NSLog(@"str=%@", str);
-//    NSURL *url = [NSURL URLWithString:@"http://222.73.161.212/ispace2/servlet/com.lemon.xml.XmlAction"];
-//
-//    //A Boolean value that turns an indicator of network activity on or off.
-//    [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
-//
-//    NSData *xmlData = [NSData dataWithContentsOfURL:[NSURL URLWithString:str]];
-//
-//    [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
-//
-//    NSString *xmlString = [[NSString alloc] initWithData:xmlData encoding:NSUTF8StringEncoding];
-//
-//    if (xmlData == nil) {
-//        NSLog(@"File read failed!:%@", xmlString);
-//    }
-//    else {
-//        NSLog(@"File read succeed!:%@",xmlString);
-//    }
 
     AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
     manager.responseSerializer = [AFHTTPResponseSerializer serializer];