浏览代码

健康文章图片上传失败前端问题

liuwenbin 7 年之前
父节点
当前提交
a78e31028b

+ 2 - 2
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/jimeiJkEdu/JMJkEduArticleService.java

@ -1122,7 +1122,7 @@ public class JMJkEduArticleService extends BaseService {
        //避免前端上传图片失败还传递失败信息到后台
        //避免前端上传图片失败还传递失败信息到后台
        if(image.startsWith("{")&&image.endsWith("}")){
        if(image.startsWith("{")&&image.endsWith("}")){
            throw new Exception();
            throw new Exception("上传图片失败!");
        }
        }
        if(!StringUtils.isEmpty(articleId)){
        if(!StringUtils.isEmpty(articleId)){
            JSONObject obj = thirdJkEduArticleService.getArticalById(articleId,null,"");
            JSONObject obj = thirdJkEduArticleService.getArticalById(articleId,null,"");
@ -1327,7 +1327,7 @@ public class JMJkEduArticleService extends BaseService {
            heapm.setLeaveWords(one.getLeaveWords());//医生留言
            heapm.setLeaveWords(one.getLeaveWords());//医生留言
            doctor = doctorDao.findByCode(one.getDoctorCode());
            doctor = doctorDao.findByCode(one.getDoctorCode());
            heapm.setPhoto(doctor.getPhoto());
            heapm.setPhoto(doctor.getPhoto());
            heapm.setTotalData(total);
//            heapm.setTotalData(total);
            result.add(heapm);
            result.add(heapm);
            // heapm.setTime();//时间  xx小时前  2017-10-11
            // heapm.setTime();//时间  xx小时前  2017-10-11
        }
        }