Commit 880dfacb by qwmqiuwenmin

fix

parent 5d3001e7
......@@ -173,6 +173,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.edit(materialDTO);
......
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