Commit eff76aa5 by 伍思炜

2

parent fe74c8bb
......@@ -41,13 +41,14 @@ public class ImgController extends BaseController {
if (!shiroUser.getRoleNames().stream().anyMatch(roleName -> StringUtils.equalsAny(roleName, "超级管理员", "系统管理员","县分管理员(订单)","合伙人"))) {
return ResponseData.error("无数据权限");
}
System.out.println(url);
url.replace("manager/ciop","");
System.out.println("url :"+url);
url = url.replace("/api/manager/ciop","");
byte[] bytes=new byte[10];
String imgurl= pathPre + FilePath.BACKGROUNDIMG.getValue()+"/"+url;
imgurl = imgurl.replace("//", "/");
File file = new File(imgurl);
//File file = new File(imgurl);
File file = new File("D:\\test.jpg");
FileInputStream inputStream = null;
try {
inputStream = new FileInputStream(file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment