|
@ -24,6 +24,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.net.URLEncoder;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
@ -88,9 +89,10 @@ public class WxTemplateService {
|
|
|
jsonObject.put("mobile",basePatientDO.getMobile());
|
|
|
jsonObject.put("openid",basePatientWechatDo.getOpenid());
|
|
|
String authCode = jsonObject.toJSONString();
|
|
|
String jm = RSAEncrypt.encrypt(authCode,getAuthCode);
|
|
|
String miniprogramUrl = "pages/room/room?patientCode="+reciver_id+"&doctorName="+sender_name+"&role=patient&roomID="+session_id+"&template=1v1&debugMode=false&cloudenv=PRO&authCode="+jm+"&code="+wechatId+"&appid="+basePatientDO.getId();
|
|
|
String jm = URLEncoder.encode(RSAEncrypt.encrypt(authCode,getAuthCode),"utf-8");
|
|
|
String miniprogramUrl = "pages/room/room?patientCode="+reciver_id+"&doctorName="+sender_name+"&role=patient&roomID="+session_id+"&template=1v1&debugMode=false&cloudenv=PRO&authCode="+jm+"&code="+wechatId+"&appId="+basePatientDO.getId();
|
|
|
//心脏中心模版消息推送接口
|
|
|
logger.info("心脏中心小程序跳转URL:"+miniprogramUrl);
|
|
|
xzzxEntranceService.sendXCXMes(wechatId,
|
|
|
basePatientDO.getId(),
|
|
|
basePatientDO.getIdcard(),
|