注:此帖为自己二次开发系统中遇到小BUG及相应修复办法,开设此帖是方便稍后再遇到同样问题能快速修复,同时也希望能帮到遇到相同问题的朋友。期待官方在稍后版本逐步修复相应Bug
本帖会持续更新
1、当模型投稿录入表单自定义时,会员中心模型信息管理处选中所有无效
修复方法:\user\User_ItemInfo.asp ShowDiyList()过程添加:
- Response.Write "<FORM Action=""?ChannelID=" & ChannelID & "&Action=Del"" name=""myform"" method=""post"">"
Bug版本: V9.05GBK
2、会员中心操作页面退出时,出现了一个死循环:
BUG:
修复:
系统未整合情况下
- If trim(Request.ServerVariables("http_referer"))="" Then
- Response.Redirect "/"
- elseif instr(Lcase(Request.ServerVariables("HTTP_REFERER")),"index.asp")>0 then
- Response.Redirect("../")
- else
- Response.Redirect Request.ServerVariables("http_referer")
- end if
改成
- If trim(Request.ServerVariables("http_referer"))="" Then
- Response.Redirect "/"
- elseif instr(Lcase(Request.ServerVariables("HTTP_REFERER")),"index.asp")>0 then
- Response.Redirect("../")
- elseif instr(Lcase(Request.ServerVariables("HTTP_REFERER")),"/user/")>0 then
- Response.Redirect("../")
- else
- Response.Redirect Request.ServerVariables("http_referer")
- end if
Bug版本: V9.05GBK
3、当模型投稿录入表单自定义时,自定义字段默认值为now或date时无效
修复:
\ks_cls\UserFunction.asp GetDiyFieldValue函数改成如下:
Function GetDiyFieldValue(FieldXML,FieldName) Dim V,Xnode:Set Xnode=FieldXML.DocumentElement.selectsinglenode("fielditem[@fieldname='" & FieldName &"']") If Not Xnode Is Nothing Then V=Xnode.selectsinglenode("defaultvalue").text If LCase(Trim(V))="now" Then V=now ElseIf LCase(Trim(V))="date" Then V=date ElseIf Instr(V,"|")<>0 Then If Not KS.IsNul(KS.C("UserName")) Then V=LFCls.GetSingleFieldValue("Select Top 1 " & Split(V,"|")(1) & " From " & Split(V,"|")(0) & " Where username='" & KSUser.UserName & "'") Else V="" End If End if End If GetDiyFieldValue=VEnd Function
Bug版本: V9.05GBK