Commit a47f255e by qwmqiuwenmin

fix

parent 880dfacb
......@@ -124,6 +124,7 @@ public class MaterialApiServiceImpl implements MaterialApiService {
JSONResponse jp = qywxSuiteApiService.uploadMedia(enterprise.getCorpid(), config.getWxSuiteid(), getFileByte(url), fileType.getCode());
if(jp.getErrorCode() == 0){
String json = jp.getResult().toString();
logger.info("【上传文件】json={}",json);
JSONObject jsonObject = JSON.parseObject(json);
materialDTO.setMediaId(jsonObject.getString("media_id"));
materialService.insertMaterial(materialDTO);
......@@ -238,7 +239,6 @@ public class MaterialApiServiceImpl implements MaterialApiService {
try {
InputStream in = new URL(url).openStream();
byte[] data = IOUtils.toByteArray(in);
logger.info("【获取流】={}",data);
return data;
}catch (Exception e){
logger.info("【异常】"+e.getMessage(),e);
......
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