@@ -10,7 +10,6 @@ class ZalyConfig
1010{
1111 public static $ config ;
1212 private static $ verifySessionKey ="session_verify_ " ;
13-
1413 public static function getConfigFile ()
1514 {
1615 $ fileName = dirname (__FILE__ ) ."/../../config.php " ;
@@ -37,6 +36,12 @@ public static function getSessionVerifyUrl($pluginId)
3736 return self ::$ config [$ key ];
3837 }
3938
39+ public static function getApiPageIndexUrl ()
40+ {
41+ $ domain = self ::getDomain ();
42+ return $ domain .self ::$ config ['apiPageIndex ' ];
43+ }
44+
4045 public static function getApiPageJumpUrl ()
4146 {
4247 $ domain = self ::getDomain ();
@@ -53,9 +58,39 @@ public static function getDomain()
5358 {
5459 self ::getConfigFile ();
5560
56- $ scheme = isset ($ _SERVER ['REQUEST_SCHEME ' ]) ? $ _SERVER ['REQUEST_SCHEME ' ].":// " : "http:// " ;
57- $ domain = isset ($ _SERVER ['HTTP_HOST ' ]) ? $ _SERVER ['HTTP_HOST ' ] : "" ;
61+ $ scheme = isset ($ _SERVER ['REQUEST_SCHEME ' ]) ? $ _SERVER ['REQUEST_SCHEME ' ].":// " : "" ;
62+ $ domain = isset ($ _SERVER ['HTTP_HOST ' ]) ?$ _SERVER ['HTTP_HOST ' ] : "" ;
5863
5964 return $ scheme .$ domain ;
6065 }
66+
67+ public static function getApiPageMsgUrl ()
68+ {
69+ $ domain = self ::getDomain ();
70+ return $ domain .self ::$ config ['apiPageMsg ' ];
71+ }
72+
73+ public static function getApiSiteLoginUrl ()
74+ {
75+ $ domain = self ::getDomain ();
76+ return $ domain .self ::$ config ['apiSiteLogin ' ];
77+ }
78+
79+ public static function getApiPageLoginUrl ()
80+ {
81+ $ domain = self ::getDomain ();
82+ return $ domain .self ::$ config ['apiPageLogin ' ];
83+ }
84+
85+ public static function getApiPageLogoutUrl ()
86+ {
87+ $ domain = self ::getDomain ();
88+ return $ domain .self ::$ config ['apiPageLogout ' ];
89+ }
90+
91+ public static function getApiPageSiteInit ()
92+ {
93+ $ domain = self ::getDomain ();
94+ return $ domain .self ::$ config ['apiPageSiteInit ' ];
95+ }
6196}
0 commit comments