From 7a882c68c3c1a4a332fc4095dc85547d572e10a4 Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Wed, 30 May 2018 18:11:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/SimpleClientApplyController.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/application/web/SimpleClientApplyController.java b/src/main/java/au/com/royalpay/payment/manage/application/web/SimpleClientApplyController.java index 4b96f8fb3..9d4988793 100644 --- a/src/main/java/au/com/royalpay/payment/manage/application/web/SimpleClientApplyController.java +++ b/src/main/java/au/com/royalpay/payment/manage/application/web/SimpleClientApplyController.java @@ -3,13 +3,9 @@ package au.com.royalpay.payment.manage.application.web; import au.com.royalpay.payment.manage.application.beans.ClientPreApplyBean; import au.com.royalpay.payment.manage.application.beans.ClientPreApplyStep1Bean; import au.com.royalpay.payment.manage.application.core.SimpleClientApplyService; -import au.com.royalpay.payment.manage.merchants.beans.NewAccountBean; -import au.com.royalpay.payment.tools.CommonConsts; -import au.com.royalpay.payment.tools.http.HttpUtils; import com.alibaba.fastjson.JSONObject; -import org.springframework.validation.Errors; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -20,7 +16,6 @@ import org.springframework.web.bind.annotation.RestController; import org.springframework.web.servlet.ModelAndView; import javax.annotation.Resource; -import javax.servlet.http.HttpServletResponse; import javax.validation.Valid; @RestController @@ -34,17 +29,6 @@ public class SimpleClientApplyController { simpleClientApplyService.checkAccountName(phone,nation_code); } - @RequestMapping(value = "/account/{codeKey}", method = RequestMethod.POST) - @ResponseBody - public void registerAccount(@PathVariable String codeKey, @RequestBody @Valid NewAccountBean accountBean, Errors errors, HttpServletResponse response) { - HttpUtils.handleValidErrors(errors); - simpleClientApplyService.verifyRegisterSMSCode(codeKey, accountBean.getContactPhone()); - - JSONObject account = simpleClientApplyService.newAccount(accountBean); - String statusKey = simpleClientApplyService.partnerSignIn(account); - HttpUtils.setCookie(response, CommonConsts.CODE_KEY, statusKey); - } - @RequestMapping(value = "/account/mail/{address}/verify/{codeKey}/jump", method = RequestMethod.GET) public ModelAndView jumpVerifyMail(@PathVariable String codeKey, @PathVariable String address,@RequestParam String username) { simpleClientApplyService.checkOrGenerateVerifyMailKey(address, codeKey);