|
@@ -278,20 +278,20 @@ public class FrontController extends BaseController {
|
|
* @param FYHYM 房源核验码
|
|
* @param FYHYM 房源核验码
|
|
*/
|
|
*/
|
|
@GetMapping("houseSourceVerify")
|
|
@GetMapping("houseSourceVerify")
|
|
- public void houseSourceVerify(String FYHYM, String captcha) {
|
|
|
|
|
|
+ public void houseSourceVerify(String callback, String FYHYM, String captcha) {
|
|
if (Blank.isEmpty(FYHYM, captcha)) {
|
|
if (Blank.isEmpty(FYHYM, captcha)) {
|
|
- sendJson(false, "房源核验码或验证码不能为空!", null);
|
|
|
|
|
|
+ sendJsonp(callback, false, "房源核验码或验证码不能为空!", null);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
String saveCaptcha = Convert.toStr(redisTemplate.opsForValue().get(getRequest().getRequestedSessionId() + "-captcha"), "");
|
|
String saveCaptcha = Convert.toStr(redisTemplate.opsForValue().get(getRequest().getRequestedSessionId() + "-captcha"), "");
|
|
if ("".equals(saveCaptcha) || !captcha.equals(saveCaptcha)) {
|
|
if ("".equals(saveCaptcha) || !captcha.equals(saveCaptcha)) {
|
|
- sendJson(false, "输入的验证码有误!", null);
|
|
|
|
|
|
+ sendJsonp(callback, false, "输入的验证码有误!", null);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
final ApiResponse<?> apiResponse = service.houseSourceVerify(FYHYM);
|
|
final ApiResponse<?> apiResponse = service.houseSourceVerify(FYHYM);
|
|
- sendJson(apiResponse.isSuccess(), apiResponse.getMsg(), apiResponse.getData());
|
|
|
|
|
|
+ sendJsonp(callback, apiResponse.isSuccess(), apiResponse.getMsg(), apiResponse.getData());
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|