{
    "name"  : "在设备配置为微信连wifi情况下检查url白名单是否正确",
    "problems" : {
        "check_wechat_url" : {
            "desc"      : "【问题】白名单错误可导致认证异常",
            "advice"    : "【建议】进入WEB页面的商业营销认证并使用微信认证快速配置重新配置" 
        }
    }
}

---------------------------code-------------------------------
response = cli('show app-auth direct-url')
reg1 = /3gimg.qq.com\/scan_wi-fi/
reg2 = /wifi.weixin.qq.com/
reg3 = /o2o.gtimg.com/
if reg1.test(response) && reg2.test(response) && !reg3.test(response) :
    return 'success'
else:
    add_problem("check_wechat_url")
    return 'warn'
end