Browse Source

医保局二期打卡护理计划代码更新,手机端和PC上传的照片参数不一致

fyz 7 months ago
parent
commit
86207e0f1a

+ 2 - 2
mjava-yibaoju/src/main/java/com/malk/yibaoju/service/impl/YBJServiceImpl.java

@@ -1367,9 +1367,9 @@ public class YBJServiceImpl implements YBJService {
         updateWrapper.eq("plan_inst_id",id);
 
         List<Map<String,Object>> image = (List<Map<String, Object>>) data.get("imageField_lp7obkee");
-        String remoteUrl = "https://xvuk8m.aliwork.com" + image.get(0).get("imgUrl");
+        String remoteUrl = "https://xvuk8m.aliwork.com" + image.get(0).get("previewUrl");
         String fileName = image.get(0).get("name").toString();
-        String downLoad = image.get(0).get("downloadURL").toString();
+        String downLoad = image.get(0).get("downloadUrl").toString();
 //            downloadFile(remoteUrl,localUrl+fileName);
         Date date = new Date(Long.parseLong(data.get("dateField_lp7obkef").toString()));
         Map<String, Object> updateMap = new HashMap<>();