Commit 75b8ada7 by 汪鑫

旅馆一件事

parent 50c5028b
......@@ -76,7 +76,7 @@ public class CommonController extends BaseController {
String baseStr = null;
BASE64Encoder encoder = new BASE64Encoder();
baseStr= encoder.encode(file.getBytes());
baseStr = baseStr.replaceAll("\r\n", "");
return RespInfo.mobiSuccess(baseStr);
baseStr = baseStr.replaceAll("\r", "").replaceAll("\n","");
return RespInfo.mobiSuccess((Object) baseStr);
}
}
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