|
|
@@ -240,6 +240,28 @@ public class HpUserControllerAPI extends BaseAppController {
|
|
|
return view;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取ocr秘钥
|
|
|
+ *
|
|
|
+ * @param request
|
|
|
+ * @param response
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/getOcrKey", method = RequestMethod.POST)
|
|
|
+ @ResponseBody
|
|
|
+ public ModelAndView getOcrKey(HttpServletRequest request, HttpServletResponse response) {
|
|
|
+ Map<String, Object> returnMap = new HashMap<String, Object>();
|
|
|
+ //腾讯云验证码个人秘钥id
|
|
|
+ returnMap.put("secretId",Global.getSecretId());
|
|
|
+ //腾讯云验证码个人秘钥
|
|
|
+ returnMap.put("secretKey",Global.getSecretKey());
|
|
|
+ Map<String, Object> obj = null;
|
|
|
+ obj = successResult(ErrorCode.code_1000, "获取ocr信息成功", returnMap);
|
|
|
+ ModelAndView view = new ModelAndView(new MappingJackson2JsonView(), obj);
|
|
|
+ return view;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 实名认证
|
|
|
*
|