Commit 27b3e86a authored by 勾芒's avatar 勾芒

完成修改短信接口,完成短信验证码接口

parent cac901c1
......@@ -307,21 +307,15 @@
}
[self CreateMBProgressHUDLoding];
//发送验证码
[[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@%@",ServerAddress,@"/sendSms/send?phone=",inputPhoneNumber] WithRequestType:1 WithParameter:nil WithReturnValueBlock:^(id returnValue) {
[[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@%@",ServerAddress,@"/system/sendSms?mobilephone=",inputPhoneNumber] WithRequestType:1 WithParameter:nil WithReturnValueBlock:^(id returnValue) {
[self RemoveMBProgressHUDLoding];
if ([returnValue[@"code"] isEqualToNumber:@0]) {
if ([[returnValue[@"data"] lastObject] isEqualToString:@"发送短信成功"]) {
[self ErrorMBProgressView:@"发送验证码成功"];
self.verifyCode = [returnValue[@"data"] firstObject];
[self.identityView.SendButton setTitle:@"60" forState:UIControlStateNormal];
self.identityView.SendButton.enabled = NO;
self.sendTimer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(SendbuttonChangetitle) userInfo:nil repeats:YES];
}else
{
[self ErrorMBProgressView:[returnValue[@"data"] lastObject]];
}
[self ErrorMBProgressView:@"发送验证码成功"];
[self.identityView.SendButton setTitle:@"60" forState:UIControlStateNormal];
self.identityView.SendButton.enabled = NO;
self.sendTimer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(SendbuttonChangetitle) userInfo:nil repeats:YES];
}else
{
......@@ -386,25 +380,39 @@
return;
} else {
if ( [self.identityView.verificationCode.text isEqualToString: self.verifyCode] ) {
[self.sendTimer invalidate];
self.resetPasswordView = [[[NSBundle mainBundle] loadNibNamed:@"authenticateView" owner:self options:nil]lastObject];
self.resetPasswordView.layer.masksToBounds = YES;
self.resetPasswordView.layer.cornerRadius = 10;
self.resetPasswordView.frame = self.userNameLoginView.frame;
[self.resetPasswordView.backValidationView addTarget:self action:@selector(backButonClick) forControlEvents:UIControlEventTouchUpInside];
[self.resetPasswordView.resetPasswordNextButton addTarget:self action:@selector(ChangPassWordRequest) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:self.resetPasswordView];
self.resetPasswordView.alpha = 0;
//验证验证码
[self CreateMBProgressHUDLoding];
[[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:[NSString stringWithFormat:@"%@%@%@",ServerAddress,@"/employee/validateSmsCode?code=",self.identityView.verificationCode.text] WithRequestType:1 WithParameter:nil WithReturnValueBlock:^(id returnValue) {
[UIView animateWithDuration:0.2 animations:^{
[self RemoveMBProgressHUDLoding];
if ([returnValue[@"code"] isEqualToNumber:@0]) {
self.resetPasswordView.alpha = 1;
}];
} else {
[self ErrorMBProgressView:@"验证码不正确!"];
return;
}
[self.sendTimer invalidate];
self.resetPasswordView = [[[NSBundle mainBundle] loadNibNamed:@"authenticateView" owner:self options:nil]lastObject];
self.resetPasswordView.layer.masksToBounds = YES;
self.resetPasswordView.layer.cornerRadius = 10;
self.resetPasswordView.frame = self.userNameLoginView.frame;
[self.resetPasswordView.backValidationView addTarget:self action:@selector(backButonClick) forControlEvents:UIControlEventTouchUpInside];
[self.resetPasswordView.resetPasswordNextButton addTarget:self action:@selector(ChangPassWordRequest) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:self.resetPasswordView];
self.resetPasswordView.alpha = 0;
[UIView animateWithDuration:0.2 animations:^{
self.resetPasswordView.alpha = 1;
}];
}else
{
[self ErrorMBProgressView:returnValue[@"message"]];
}
} WithErrorCodeBlock:^(id errorCodeValue) {
} WithFailureBlock:^(NSError *error) {
[self ErrorMBProgressView:error.localizedDescription];
[self RemoveMBProgressHUDLoding];
}];
}
}
......
......@@ -76,6 +76,7 @@
UMSocialUrlResource *resource = [[UMSocialUrlResource alloc]initWithSnsResourceType:UMSocialUrlResourceTypeWeb url:returnValue[@"data"][@"url"]];
//使用UMShareToWechatSession,UMShareToWechatTimeline,UMShareToWechatFavorite分别代表微信好友、微信朋友圈、微信收藏
NSLog(@"%@",resource.url);
[[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatSession] content:@"分享内嵌文字" image:TCImage(@"Icon-83.5") location:nil urlResource:resource presentedController:self completion:^(UMSocialResponseEntity *response){
if (response.responseCode == UMSResponseCodeSuccess) {
NSLog(@"分享成功!");
......
......@@ -147,7 +147,7 @@
29F725FE1CE1928F0072FE0E /* opple_objc_json_client.m in Sources */ = {isa = PBXBuildFile; fileRef = 29F725FD1CE1928F0072FE0E /* opple_objc_json_client.m */; };
29F726011CE1D05D0072FE0E /* ScreeningCollectionReusableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 29F726001CE1D05D0072FE0E /* ScreeningCollectionReusableView.m */; };
29F726041CE1E96E0072FE0E /* ScreeningSecondCollectionReusableView.m in Sources */ = {isa = PBXBuildFile; fileRef = 29F726031CE1E96E0072FE0E /* ScreeningSecondCollectionReusableView.m */; };
E295E0738403C000A95D635B /* Pods_Lighting.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD85FE4EAC325C3B0C4C4185 /* Pods_Lighting.framework */; };
8CF724386F9E2A71B2C18345 /* Pods_Lighting.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4E060F5DA99F2570D18158A0 /* Pods_Lighting.framework */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
......@@ -400,9 +400,9 @@
29F726001CE1D05D0072FE0E /* ScreeningCollectionReusableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ScreeningCollectionReusableView.m; sourceTree = "<group>"; };
29F726021CE1E96E0072FE0E /* ScreeningSecondCollectionReusableView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScreeningSecondCollectionReusableView.h; sourceTree = "<group>"; };
29F726031CE1E96E0072FE0E /* ScreeningSecondCollectionReusableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ScreeningSecondCollectionReusableView.m; sourceTree = "<group>"; };
2A0DBC909F32F0D5DF2D7C35 /* Pods-Lighting.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Lighting.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Lighting/Pods-Lighting.debug.xcconfig"; sourceTree = "<group>"; };
626A96BEF8CC5B5EB142DBB2 /* Pods-Lighting.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Lighting.release.xcconfig"; path = "Pods/Target Support Files/Pods-Lighting/Pods-Lighting.release.xcconfig"; sourceTree = "<group>"; };
AD85FE4EAC325C3B0C4C4185 /* Pods_Lighting.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Lighting.framework; sourceTree = BUILT_PRODUCTS_DIR; };
36DBE68B106FB4574467FD54 /* Pods-Lighting.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Lighting.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Lighting/Pods-Lighting.debug.xcconfig"; sourceTree = "<group>"; };
4E060F5DA99F2570D18158A0 /* Pods_Lighting.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Lighting.framework; sourceTree = BUILT_PRODUCTS_DIR; };
9D030079C5E9AADF19AB8C89 /* Pods-Lighting.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Lighting.release.xcconfig"; path = "Pods/Target Support Files/Pods-Lighting/Pods-Lighting.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
......@@ -418,7 +418,7 @@
041843DF1CF7735C0081B694 /* SystemConfiguration.framework in Frameworks */,
041843DE1CF773530081B694 /* libiconv.tbd in Frameworks */,
041843DC1CF773490081B694 /* Security.framework in Frameworks */,
E295E0738403C000A95D635B /* Pods_Lighting.framework in Frameworks */,
8CF724386F9E2A71B2C18345 /* Pods_Lighting.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -853,7 +853,7 @@
29706DA31CD082990003C412 /* Lighting */,
29706DA21CD082990003C412 /* Products */,
4333C4B25549A396FC0CD944 /* Frameworks */,
CD9E4E7D493F0140FF07DA1F /* Pods */,
FD3B28C419E62C8A83BBB5D7 /* Pods */,
);
sourceTree = "<group>";
};
......@@ -1317,16 +1317,16 @@
041843DB1CF773490081B694 /* Security.framework */,
04F9EE211CF27B1D00BD729F /* CoreTelephony.framework */,
04F9EE1F1CF27AF900BD729F /* SystemConfiguration.framework */,
AD85FE4EAC325C3B0C4C4185 /* Pods_Lighting.framework */,
4E060F5DA99F2570D18158A0 /* Pods_Lighting.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
CD9E4E7D493F0140FF07DA1F /* Pods */ = {
FD3B28C419E62C8A83BBB5D7 /* Pods */ = {
isa = PBXGroup;
children = (
2A0DBC909F32F0D5DF2D7C35 /* Pods-Lighting.debug.xcconfig */,
626A96BEF8CC5B5EB142DBB2 /* Pods-Lighting.release.xcconfig */,
36DBE68B106FB4574467FD54 /* Pods-Lighting.debug.xcconfig */,
9D030079C5E9AADF19AB8C89 /* Pods-Lighting.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
......@@ -1338,13 +1338,12 @@
isa = PBXNativeTarget;
buildConfigurationList = 29706DBB1CD082990003C412 /* Build configuration list for PBXNativeTarget "Lighting" */;
buildPhases = (
3B22FA344ED6819E79AB8013 /* 📦 Check Pods Manifest.lock */,
75A400E3109F3B3586CE2E45 /* 📦 Check Pods Manifest.lock */,
29706D9D1CD082980003C412 /* Sources */,
29706D9E1CD082980003C412 /* Frameworks */,
29706D9F1CD082980003C412 /* Resources */,
81ABC0A096BEAA39EE881ABF /* 📦 Embed Pods Frameworks */,
35C733F7E327DAE2BD83B6C9 /* 📦 Copy Pods Resources */,
C5D09BDA1C34591594D93F3A /* Embed Pods Frameworks */,
45562055C61E7301131BCCFD /* 📦 Embed Pods Frameworks */,
32B035F0BA35D400503435F4 /* 📦 Copy Pods Resources */,
);
buildRules = (
);
......@@ -1424,7 +1423,7 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
35C733F7E327DAE2BD83B6C9 /* 📦 Copy Pods Resources */ = {
32B035F0BA35D400503435F4 /* 📦 Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
......@@ -1439,22 +1438,7 @@
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Lighting/Pods-Lighting-resources.sh\"\n";
showEnvVarsInLog = 0;
};
3B22FA344ED6819E79AB8013 /* 📦 Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "📦 Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
81ABC0A096BEAA39EE881ABF /* 📦 Embed Pods Frameworks */ = {
45562055C61E7301131BCCFD /* 📦 Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
......@@ -1469,19 +1453,19 @@
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Lighting/Pods-Lighting-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
C5D09BDA1C34591594D93F3A /* Embed Pods Frameworks */ = {
75A400E3109F3B3586CE2E45 /* 📦 Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Embed Pods Frameworks";
name = "📦 Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Lighting/Pods-Lighting-frameworks.sh\"\n";
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
......@@ -1712,7 +1696,7 @@
};
29706DBC1CD082990003C412 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 2A0DBC909F32F0D5DF2D7C35 /* Pods-Lighting.debug.xcconfig */;
baseConfigurationReference = 36DBE68B106FB4574467FD54 /* Pods-Lighting.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
......@@ -1760,7 +1744,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.opple;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "d25ba75f-c4da-4bef-b966-3a998dcbffbe";
PROVISIONING_PROFILE = "f89bebf5-81e2-4c61-9052-8c7bb0f9ddd6";
STRIP_PNG_TEXT = NO;
USER_HEADER_SEARCH_PATHS = "$(PODS_ROOT)/**";
};
......@@ -1768,7 +1752,7 @@
};
29706DBD1CD082990003C412 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 626A96BEF8CC5B5EB142DBB2 /* Pods-Lighting.release.xcconfig */;
baseConfigurationReference = 9D030079C5E9AADF19AB8C89 /* Pods-Lighting.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
......@@ -1816,8 +1800,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.opple;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "d25ba75f-c4da-4bef-b966-3a998dcbffbe";
PROVISIONING_PROFILE = "f89bebf5-81e2-4c61-9052-8c7bb0f9ddd6";
STRIP_PNG_TEXT = NO;
USER_HEADER_SEARCH_PATHS = "$(PODS_ROOT)/**";
};
......
......@@ -64,4 +64,6 @@ SPEC CHECKSUMS:
SVProgressHUD: b0830714205bea1317ea1a2ebc71e5633af334d4
UMengSocial: 48b67179c492a8cf7803fbb0438b8f55432e2fc1
COCOAPODS: 0.39.0
PODFILE CHECKSUM: ce813becb6471581d2231aa1586a015081ae7114
COCOAPODS: 1.0.0
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