@time: 2025-02-19 @name 获取云端URL地址 @author lkq<2022-4-12> @return URL
(self)
| 2236 | return public.returnMsg(False, '执行告警测试时发生错误: {}'.format(str(e))) |
| 2237 | |
| 2238 | def GetCheckUrl(self): |
| 2239 | ''' |
| 2240 | @time: 2025-02-19 |
| 2241 | @name 获取云端URL地址 |
| 2242 | @author lkq<2022-4-12> |
| 2243 | @return URL |
| 2244 | ''' |
| 2245 | try: |
| 2246 | |
| 2247 | ret = requests.get('http://www.bt.cn/checkWebShell.php').json() |
| 2248 | if ret['status']: |
| 2249 | return ret['url'] |
| 2250 | return False |
| 2251 | except: |
| 2252 | return False |
| 2253 | |
| 2254 | def ReadFile(self, filepath, mode='r'): |
| 2255 | ''' |