|
@ -443,7 +443,7 @@ public class RehabilitationManageService extends BaseService {
|
|
|
if(list!=null && list.size()>0){
|
|
|
fileUrl = String.valueOf(list.get(0).get("service_qr_code"));
|
|
|
}
|
|
|
if (StringUtils.isEmpty(fileUrl)){
|
|
|
if (StringUtils.isEmpty(fileUrl) || "null".equals(fileUrl)){
|
|
|
//生成二维码图片
|
|
|
String contentJsonStr="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+appId+"&redirect_uri="+wechat_base_url+"/wx/html/kfgl/html/confirm-service.html"+"?paramStr="+planDetailId+","+doctorCode+"&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";
|
|
|
InputStream ipt = QrcodeUtil.createQrcode(contentJsonStr, 300, "png");
|
|
@ -474,6 +474,7 @@ public class RehabilitationManageService extends BaseService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
System.out.println("服务码-----------1"+fileUrl);
|
|
|
param.put("planDetailId", planDetailId);
|
|
|
param.put("doctorCode", doctorCode);
|
|
|
param.put("imageUrl",fileUrl);
|
|
@ -614,7 +615,9 @@ public class RehabilitationManageService extends BaseService {
|
|
|
param.put("image", image);
|
|
|
//specialistUrl= "http://localhost:10051";
|
|
|
HttpResponse response = HttpUtils.doPost(specialistUrl + updateNoteAndImageRehabilitationOperate, param);
|
|
|
System.out.println("返回数据=======1===="+response);
|
|
|
JSONObject result = new JSONObject(response.getContent());
|
|
|
System.out.println("返回数据=======2===="+result);
|
|
|
if(result.getInt("status") == 200){
|
|
|
JSONObject object = result.getJSONObject("obj");
|
|
|
//保存wlyy_message
|