Authored by chunhua.zhang

Merge branch 'qcloudapi' into 'master'

删除多余代码



See merge request !24
... ... @@ -45,12 +45,6 @@ sys.setdefaultencoding('utf8')
'''
def dns_inqure(SecretId,SecretKey,domain_name,value):
ret = {}
# 通过传入的域名参数简单判断域名格式是否正确
domain_regex = re.compile(r'(?:[A-Z0-9_](?:[A-Z0-9-_]{0,247}[A-Z0-9])?\.)+(?:[A-Z]{2,6}|[A-Z0-9-]{2,}(?<!-))\Z',re.IGNORECASE)
if not domain_regex.match(domain_name):
ret["code"] = 2
ret["err"] = "域名格式不对"
return ret
# 通过传入的域名来获取domain和subDomain值
domain = '.'.join(domain_name.split('.')[-2:])
subDomain = '.'.join(domain_name.split('.')[:-2])
... ...