Explorar o código

Merge branch 'dev' of yeshijie/patient-co-management into dev

yeshijie %!s(int64=7) %!d(string=hai) anos
pai
achega
02dac632ce

+ 17 - 16
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/doctor/health/DoctorHealthGuidanceController.java

@ -197,23 +197,24 @@ public class DoctorHealthGuidanceController extends WeixinBaseController {
                Doctor doctor = doctorService.findDoctorByCode(getUID());
                if (images == null || "".equals(images)) {
                    images = null;
                } else {
                    String[] imgs = images.split(",");
                    for (String image : imgs) {
                        if (image.contains("http://")) {
                            imageUrls += image + ",";
                        } else {
                            try {
                                imageRow += CommonUtil.copyTempImage(image) + ",";
                            } catch (Exception e) {
                                e.printStackTrace();
                            }
                        }
                    }
                    images = imageUrls + imageRow;
                    images = images.substring(0, images.length() - 1);
                }
//                else {
//                    String[] imgs = images.split(",");
//                    for (String image : imgs) {
//                        if (image.contains("http://")) {
//                            imageUrls += image + ",";
//                        } else {
//                            try {
//                                imageRow += CommonUtil.copyTempImage(image) + ",";
//                            } catch (Exception e) {
//                                e.printStackTrace();
//                            }
//                        }
//                    }
//
//                    images = imageUrls + imageRow;
//                    images = images.substring(0, images.length() - 1);
//                }
                guidance.setImages(images);
                // 保存