刘韬 2 years ago
parent
commit
bef0a35855

+ 6 - 2
PacsOnline_Wechat_Patient/src/main/java/com/zskk/controller/WebBridgeController.java

@@ -33,6 +33,10 @@ public class WebBridgeController extends ApiController {
 		this.process(WEB_BASR_URL_4+"/remoteList?appId=" + ApiConfigKit.getAppId());
 	}
 	
+	public void reportExternalLink() {
+		this.process(WEB_BASR_URL_4+"/reportListOuter?institution_id=" + this.getPara("institution_id") + "&type=" + this.getPara("type")+ "&code=" + this.getPara("code"));
+	}
+	
 	public void test4() {
 		this.process("https://wc4.pacsonline.cn/#/select");
 	}
@@ -116,9 +120,9 @@ public class WebBridgeController extends ApiController {
 	}
 	
 	
-	private void process2(String toUrl) {
+	public void process2(String toUrl) {
 		try {
-			System.out.println(toUrl);
+//			System.out.println(toUrl);
 //			System.out.println(getRequest().getRequestURL().toString());
 			renderText(getRequest().getQueryString());
 			return;

+ 4 - 6
PacsOnline_Wechat_Patient/src/main/java/com/zskk/controller/WeixinPayController.java

@@ -128,9 +128,9 @@ public class WeixinPayController extends Controller {
 //				renderText("need appId");
 //			}
 			String openid = this.getPara("openid");
-//			if (openid == null) {
-//				renderText("need openid");
-//			}
+			if (openid == null) {
+				renderText("need openid");
+			}
 			String body = this.getPara("body");
 			if (body == null) {
 				renderText("need body");
@@ -167,9 +167,7 @@ public class WeixinPayController extends Controller {
 			params.put("trade_type", TradeType.JSAPI.name());
 			params.put("nonce_str", System.currentTimeMillis() / 1000 + "");
 			params.put("notify_url", notify_url);
-			if (openid != null) {
-				params.put("openid", openid);
-			}
+			params.put("openid", openid);
 
 			String sign = PaymentKit.createSign(params, paternerKey_jx);
 			params.put("sign", sign);