刘韬 3 years ago
parent
commit
c64ac29db3

+ 3 - 1
PacsOnline_Wechat_Patient/src/main/java/com/zskk/controller/WeixinApiController.java

@@ -212,12 +212,14 @@ public class WeixinApiController extends ApiController {
 			break;
 		}
 //		redirect("http://wechat.pacsonline.cn/wx_patient/api/getQrcode?appId=" + appId + "&reportId=" + reportId);
-        ApiConfigKit.setThreadLocalAppId(appId);
+//        ApiConfigKit.setThreadLocalAppId(appId);
         String urlString =  "";
         Report reports = Report.dao.findById(reportId);
 		if (reportId == null || reports == null) {
 //			renderNull();
 			urlString=null;
+			renderNull();
+			return;
 		}
 //		if (reports.getQrCode() == null || reports.getQrCode().isEmpty()) {		
 		String str = "{\"expire_seconds\": 2592000, \"action_name\": \"QR_STR_SCENE\", \"action_info\": {\"scene\": {\"scene_str\": \"ReportQR_"