Open JohnHe404 opened 5 years ago
Cached to doesn't make sense, because if the current access is Chinese ip, you won't be able to judge, or keep the current state by default.
public enum JumpOption
{
OnlyTo_SpecSuffix,//Only jump to specify suffix
OnlyTo_SpecDomain,//Only jump to specify domain
SuffixTo_SpecSuffix,//specify suffix to specify suffix,
DomainTo_SpecDomain,//specify domain to specify domain,
}
Document not yet completed
like this ComplexJumpToCN
Simple interfaces and complex call interfaces must be distinguished,
class JumpToCNMiddleware accept an enumeration parameter:
Provided features 1) .cn suffix name, and other suffix names 2) Other suffixes (such as the .io suffix, used in mainland China), and other suffixes (used in non-Chinese mainland regions) 3) Other domain names, and other domain names (non-Chinese mainland) 4) Switch between suffix name and cached domain name (non-Chinese mainland) 5) Switch between domain name and cached domain name (non-Chinese mainland)
Other special environments, such as multiple non-Chinese mainland domain names, have not thought of a good way. I feel that you should designate a non-Chinese mainland domain name.