huwhois %!s(int64=5) %!d(string=hace) años
padre
commit
72c9037ac1
Se han modificado 1 ficheros con 12 adiciones y 1 borrados
  1. 12 1
      src/main/java/io/renren/modules/app/controller/QRCodeTest.java

+ 12 - 1
src/main/java/io/renren/modules/app/controller/QRCodeTest.java

20
import java.io.IOException;
20
import java.io.IOException;
21
21
22
/**
22
/**
23
 * APP测试接口
23
 * 二维码测试接口
24
 *
24
 *
25
 * @author Mark sunlightcs@gmail.com
25
 * @author Mark sunlightcs@gmail.com
26
 */
26
 */
51
		}
51
		}
52
    }
52
    }
53
53
54
	@GetMapping("qcodetesturl")
55
    @ApiOperation("获取二维码图片地址")
56
    public void  getCodeImgUrl(String text)throws IOException {
57
		String img = (new Date().getTime()).toString();
58
		try{
59
			qRCodeUtils.encode(text, img);
60
			return R.ok().put("img", img);
61
		}catch(Exception e){
62
			e.printStackTrace();
63
		}
64
    }
54
}
65
}