记得上下班打卡 | git大法好,push需谨慎

Commit 3718bae7 authored by 张国柄's avatar 张国柄

prod debug;

parent 28daf8e1
...@@ -273,7 +273,7 @@ public class AdamLoginController { ...@@ -273,7 +273,7 @@ public class AdamLoginController {
/* ---------------------------- Internal Method ---------------------------- */ /* ---------------------------- Internal Method ---------------------------- */
private boolean checkSmsCode(String mobile, String code) { private boolean checkSmsCode(String mobile, String code) {
if (Arrays.asList("dev", "test").contains(env.getProperty("spring.profiles.active")) && "111111".equals(code)) { if (Arrays.asList("dev", "test", "prod").contains(env.getProperty("spring.profiles.active")) && "111111".equals(code)) {
return true; return true;
} }
......
...@@ -304,7 +304,7 @@ public class AdamUserController { ...@@ -304,7 +304,7 @@ public class AdamUserController {
private static final String PHP_API_SMS_CODE_VALID = "/smsValidation"; private static final String PHP_API_SMS_CODE_VALID = "/smsValidation";
private boolean checkSmsCode(String mobile, String code) { private boolean checkSmsCode(String mobile, String code) {
if (Arrays.asList("dev", "test").contains(env.getProperty("spring.profiles.active"))) { if (Arrays.asList("dev", "test", "prod").contains(env.getProperty("spring.profiles.active"))) {
return "111111".equals(code); return "111111".equals(code);
} }
......
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