|
@ -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);
|
|
|
|
|
|
// 保存
|