https://github.com/aaPanel/aaPanel/blob/d2a66661dbd66948cce5a074214257550aec91ee/class/public.py#L2712
- def cloud_check_domain(domain):
- '''
- @name 从云端验证域名的可访问性,并将结果保存到文件
- @author hwliang<2020-12-10>
- @param domain {string} 被验证的域名
- @return void
- '''
- try:
- check_domain_path = '{}/data/check_domain/'.format(get_panel_path())
- if not os.path.exists(check_domain_path):
- os.makedirs(check_domain_path,384)
- pdata = get_user_info()
- pdata['domain'] = domain
- result = httpPost('https://www.aapanel.com/api/panel/checkDomain',{"domain":domain})
- cd_file = check_domain_path + domain +'.pl'
- writeFile(cd_file,result)
- except:
- pass
复制代码
???
找到能不能贴一下代码? |