|
@@ -63,7 +63,7 @@ public class WeChatRedirectController {
|
|
|
HttpServletResponse response) {
|
|
|
try {
|
|
|
response.sendRedirect("https://open.weixin.qq.com/connect/oauth2/authorize?" +
|
|
|
- "appid=wx85bf3fd255d86750&redirect_uri=http://huaihai-tech.com/wxserver/redirect/page2?" +
|
|
|
+ "appid=wx85bf3fd255d86750&redirect_uri=https://huaihai-tech.com/wxserver/redirect/page2?" +
|
|
|
"to=mzFeeList_" + patNo + "&response_type=code&scope=snsapi_base&state=1#wechat_redirect");
|
|
|
} catch (IOException e) {
|
|
|
throw new RuntimeException(e);
|
|
@@ -75,7 +75,7 @@ public class WeChatRedirectController {
|
|
|
public void inpatientQrEntry(HttpServletResponse response) {
|
|
|
try {
|
|
|
response.sendRedirect("https://open.weixin.qq.com/connect/oauth2/authorize?" +
|
|
|
- "appid=wx85bf3fd255d86750&redirect_uri=http://huaihai-tech.com/wxserver/redirect/page2?" +
|
|
|
+ "appid=wx85bf3fd255d86750&redirect_uri=https://huaihai-tech.com/wxserver/redirect/page2?" +
|
|
|
"to=inpatientQrEntry&response_type=code&scope=snsapi_base&state=1#wechat_redirect");
|
|
|
} catch (IOException e) {
|
|
|
throw new RuntimeException(e);
|
|
@@ -94,24 +94,7 @@ public class WeChatRedirectController {
|
|
|
// https://huaihai-tech.com/wxservice/pathEntry?path=appointment_recStaff-2801
|
|
|
try {
|
|
|
response.sendRedirect("https://open.weixin.qq.com/connect/oauth2/authorize?" +
|
|
|
- "appid=wx85bf3fd255d86750&redirect_uri=http://huaihai-tech.com/wxserver/redirect/page2?" +
|
|
|
- "to=" + path + "&response_type=code&scope=snsapi_base&state=1#wechat_redirect");
|
|
|
- } catch (IOException e) {
|
|
|
- throw new RuntimeException(e);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- @PassToken
|
|
|
- @GetMapping("/pathEntry2")
|
|
|
- public void pathEntry2(@RequestParam("path") String path, HttpServletResponse response) {
|
|
|
- if (path.startsWith("selfMachineLogin")) {
|
|
|
- String id = path.split("_")[1];
|
|
|
- dao.deleteOldLoginRecord(id);
|
|
|
- dao.insertSelfMachineLogin(id);
|
|
|
- }
|
|
|
- try {
|
|
|
- response.sendRedirect("https://open.weixin.qq.com/connect/oauth2/authorize?" +
|
|
|
- "appid=wxbde6b16acad84204&redirect_uri=http://staticweb.hnthyy.cn/wxserver/redirect/page2?" +
|
|
|
+ "appid=wx85bf3fd255d86750&redirect_uri=https://huaihai-tech.com/wxserver/redirect/page2?" +
|
|
|
"to=" + path + "&response_type=code&scope=snsapi_base&state=1#wechat_redirect");
|
|
|
} catch (IOException e) {
|
|
|
throw new RuntimeException(e);
|
|
@@ -138,7 +121,7 @@ public class WeChatRedirectController {
|
|
|
String path = "doctorArrangement_" + today + "_" + dept + "_" + doc;
|
|
|
try {
|
|
|
response.sendRedirect("https://open.weixin.qq.com/connect/oauth2/authorize?" +
|
|
|
- "appid=wx85bf3fd255d86750&redirect_uri=http://huaihai-tech.com/wxserver/redirect/page2?" +
|
|
|
+ "appid=wx85bf3fd255d86750&redirect_uri=https://huaihai-tech.com/wxserver/redirect/page2?" +
|
|
|
"to=" + path + "&response_type=code&scope=snsapi_base&state=1#wechat_redirect");
|
|
|
} catch (IOException e) {
|
|
|
throw new RuntimeException(e);
|