master
parent
2461ae983c
commit
020e2d22ce
|
@ -74,7 +74,7 @@ public class wmBaseController extends BaseController {
|
||||||
* 获取图片流/获取文件用于下载
|
* 获取图片流/获取文件用于下载
|
||||||
*
|
*
|
||||||
* @param response
|
* @param response
|
||||||
* @param request code128 格式
|
* @param request code128 格式
|
||||||
* @throws Exception http://localhost:8080/zzjee/wmOmNoticeHController/showOrDownbarcodeByurl.do?&qrvalue=1111223333 调用
|
* @throws Exception http://localhost:8080/zzjee/wmOmNoticeHController/showOrDownbarcodeByurl.do?&qrvalue=1111223333 调用
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ public class wmBaseController extends BaseController {
|
||||||
String imgurl = localPath + File.separator + dbpath;
|
String imgurl = localPath + File.separator + dbpath;
|
||||||
BarcodeUtil.generateFile(qrvalue, imgurl);
|
BarcodeUtil.generateFile(qrvalue, imgurl);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
if ("1".equals(flag)) {
|
if ("1".equals(flag)) {
|
||||||
response.setContentType("application/x-msdownload;charset=utf-8");
|
response.setContentType("application/x-msdownload;charset=utf-8");
|
||||||
|
@ -148,7 +148,7 @@ e.printStackTrace();
|
||||||
String imgurl = localPath + File.separator + dbpath;
|
String imgurl = localPath + File.separator + dbpath;
|
||||||
QRcodeUtil.encode(qrvalue, imgurl);
|
QRcodeUtil.encode(qrvalue, imgurl);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
if ("1".equals(flag)) {
|
if ("1".equals(flag)) {
|
||||||
response.setContentType("application/x-msdownload;charset=utf-8");
|
response.setContentType("application/x-msdownload;charset=utf-8");
|
||||||
|
|
Loading…
Reference in New Issue