图片上传

This commit is contained in:
huangdeliang
2021-02-01 16:11:13 +08:00
parent 9c8d3bffd4
commit 973606f319
2 changed files with 6 additions and 14 deletions

View File

@ -68,12 +68,8 @@ public class WxTokenUtils {
builder.append(line);
builder.append(System.getProperty("line.separator"));
}
String resultStr = builder.toString();
JSONObject obj = JSONObject.parseObject(resultStr);
WxFileUploadResult result = JSONObject.toJavaObject(obj, WxFileUploadResult.class);
result.setMediaId(filePath);
result.setUrl(resultStr);
return result;
JSONObject obj = JSONObject.parseObject(builder.toString());
return JSONObject.toJavaObject(obj, WxFileUploadResult.class);
}