问题发布与回答 发表于 2019-3-28 11:23:03

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

解决aspcms cnzz无法清除CNZZ参数值,cnzz设置后返回-1 和 -2错误。
修改后台路径
admin/_system/AspCms_SettingFun.asp
修改前
http://cache-qiniucdn.cych.wang/wp-content/uploads/2014/11/aspcnnq.png
修改后
http://cache-qiniucdn.cych.wang/wp-content/uploads/2014/11/aspcnnh.png
框内代码 替换成(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接口参数值。
页: [1]
查看完整版本: 解决aspcms cnzz统计无法清除CNZZ参数值