Get a visual challenge

1      / * 
2       * get image codes
 . 3       *
 . 4       * @return ResultModel <the JSONObject>
 . 5       * @author ZH
 . 6       * @date 2019-09-02
 . 7       * / 
. 8      @ApiOperation ( "get image codes" )
 9      @ Getmapping ( "getCodeImg" )
 10      public ResultModel <the JSONObject> getCodeImg (the HttpServletResponse Response) {
 . 11          response.setHeader ( "Access-Control-the Allow-Origin", "*" );
 12 is  
13 is          String Result = CodeImgCreator.getCodeImgString ();
14         String[] array = result.split("@");
15         String imgString = array[0];
16         String codeString = array[1];
17         JSONObject object = new JSONObject();
18 
19         object.put("imgString", imgString);
20         object.put("codeString", codeString);
21 
22         return ResultUtil.success(object, "查询成功");
23     }

 

Guess you like

Origin www.cnblogs.com/04241202-nan/p/11454381.html
Recommended