Commit 7c8aa601 by lilei

oss返回失败时,返回值置为空字符串

parent 5329e653
...@@ -103,7 +103,7 @@ public class OssServiceImpl implements IOssService { ...@@ -103,7 +103,7 @@ public class OssServiceImpl implements IOssService {
*/ */
@Override @Override
public String getOssFileStr(String filePath) { public String getOssFileStr(String filePath) {
String fileStr = null; String fileStr = "";
R r = getOssFile(filePath); R r = getOssFile(filePath);
if (ResultCode.SUCCESS.equals(r.getCode())) { if (ResultCode.SUCCESS.equals(r.getCode())) {
fileStr = r.getData().get("result").toString(); fileStr = r.getData().get("result").toString();
......
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