Pārlūkot izejas kodu

微信消息推送BUG修改

lyr 8 gadi atpakaļ
vecāks
revīzija
6813886650

+ 1 - 1
src/main/java/com/yihu/wlyy/entity/doctor/schedule/DoctorFamousConsultTimesRemain.java

@ -1,4 +1,4 @@
package com.yihu.wlyy.entity.doctor;
package com.yihu.wlyy.entity.doctor.schedule;
import com.yihu.wlyy.entity.IdEntity;
import org.springframework.data.repository.cdi.Eager;

+ 2 - 1
src/main/java/com/yihu/wlyy/task/PushMsgTask.java

@ -164,7 +164,7 @@ public class PushMsgTask {
//	private static final String termination = "C0tdXtA_8k-Cy4a1EkzQuI877vqaqAtRkc-e_Gsd7sk";
//	private static final String appointmentSuccess = "FY3Pqa66tHIE1Fv-irbFBPOh5cYP71fkOzfZKH4S-Fo";
//	private static final String appointmentCancel = "tldWEb9AN7p_RoHoD8ml0GxWW3V1V_mpEEhp2v6p56s";
	private static final String url = "http://www.xmtyw.cn/wlyy/wx/html/";
//	private static final String url = "http://www.xmtyw.cn/wlyy/wx/html/";
	/**
	 * 发送微信模板消息
@ -213,6 +213,7 @@ public class PushMsgTask {
	 */
	public String typeMsg(int type, String openid, String name, JSONObject json) {
		try {
			String url = SystemConf.getInstance().getSystemProperties().getProperty("server_url") + "wx/html/";
			WechatTemplate temp = new WechatTemplate();
			temp.setTouser(openid);
			temp.setTopcolor("#000000");