| @@ -2,7 +2,7 @@ package com.iformall.utils; | |||||
| public class AlipayMsgPage { | public class AlipayMsgPage { | ||||
| public final static String page_content = "<!DOCTYPE html>\r\n" + | |||||
| public final static String page_content_pre = "<!DOCTYPE html>\r\n" + | |||||
| "<html lang=\"en\">\r\n" + | "<html lang=\"en\">\r\n" + | ||||
| "\r\n" + | "\r\n" + | ||||
| "<head>\r\n" + | "<head>\r\n" + | ||||
| @@ -13,7 +13,8 @@ public class AlipayMsgPage { | |||||
| "</head>\r\n" + | "</head>\r\n" + | ||||
| "\r\n" + | "\r\n" + | ||||
| "<body>\r\n" + | "<body>\r\n" + | ||||
| " <div class=\"tisBox\">%s</div>\r\n" + | |||||
| " <div class=\"tisBox\">"; | |||||
| public final static String page_content_end = "</div>\r\n" + | |||||
| "</body>\r\n" + | "</body>\r\n" + | ||||
| "\r\n" + | "\r\n" + | ||||
| "</html>\r\n" + | "</html>\r\n" + | ||||
| @@ -134,6 +135,6 @@ public class AlipayMsgPage { | |||||
| "</style>"; | "</style>"; | ||||
| public static String getPageContent(String msg) { | public static String getPageContent(String msg) { | ||||
| return String.format(page_content, msg); | |||||
| return page_content_pre+msg+page_content_end; | |||||
| } | } | ||||
| } | } | ||||