Commit d3bedda3 authored by Admin's avatar Admin
Browse files

Put back always_true

parent 8cb420f6
Pipeline #10947 passed with stages
in 1 minute and 34 seconds
......@@ -127,9 +127,9 @@ class AliYunDomainNameBelong(ErrReturnMixin, AliYunFlow):
@classmethod
def use(cls, domain_name, always_true=True):
# if always_true:
# from ulogin.srv.aliyun import SrvResponse
# return SrvResponse(True, JsonState=True)
if always_true:
from ulogin.srv.aliyun import SrvResponse
return SrvResponse(True, JsonState=True, Response={})
resp = AliYun.query_domain_by_domain_name(domain_name)
if len(resp.json["DnsList"]["Dns"]) != 0:
resp.JsonState = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment