解决aspcms cnzz统计无法清除CNZZ参数值

解决aspcms cnzz统计无法清除CNZZ参数值

cyruschen
2014-06-30 / 0 评论 / 91 阅读 / 正在检测是否收录...

解决aspcms cnzz无法清除CNZZ参数值,cnzz设置后返回-1 和 -2错误。

修改后台路径

admin/_system/AspCms_SettingFun.asp

修改前
aspcnnq
修改后

aspcnnh

框内代码 替换成(41行位置)如图

dim cnzz:cnzz=getForm("CNZZUSER","post")
dim cnzzlink,sql
if not isnul(cnzz) then
dim cnzzarr:cnzzarr=split(cnzz,"@")
if ubound(cnzzarr)>0 then
cnzzlink="http://wss.cnzz.com/user/companion/aspcms_login.php?site_id="&cnzzarr(0)&"&password="&cnzzarr(1)&""
sql="update aspcms_menu set menulink='"&cnzzlink&"' where MenuKey='cnzz'"
'die(sql)
conn.exec sql,"exe"
end if
else
cnzzlink=sitePath&"_expand/_statistics/AspCms_CNZZ.asp"
sql="update aspcms_menu set menulink='"&cnzzlink&"' where MenuKey='cnzz'"
'die(sql)
conn.exec sql,"exe"
end if

处理过后就能在网站参数设置里面删除原本的cnzz参数值并保存成功。而后在重新申请cnzz接口参数值。

0

评论

博主关闭了当前页面的评论