| | |
| | | String appKey = systemConfigService.getValueCache(acceptData.getSystem(), SystemConfigKey.tencentSMSAppKey); |
| | | SmsSingleSenderResult result = |
| | | TencentSMSUtil.sendSingleMsg(Integer.parseInt(appId), appKey, phone, msg.replace("{验证码}", code)); |
| | | verifyCodeManager.sendSMSSuccess(acceptData.getSystem(), phone, code); |
| | | return JsonUtil.loadTrueResult(""); |
| | | if (result.result == 0) { |
| | | verifyCodeManager.sendSMSSuccess(acceptData.getSystem(), phone, code); |
| | | return JsonUtil.loadTrueResult(""); |
| | | } else { |
| | | return JsonUtil.loadFalseResult("验证码发送失败,请稍后再试"); |
| | | } |
| | | } else { |
| | | return JsonUtil.loadFalseResult("服务器繁忙,请稍后再试"); |
| | | } |