关于收藏出错的解决办法 |
责任编辑:育鹰 更新日期:2008-9-4 |
打开 account/bookmark.asp 找到并且对照红色部分修改. 修复说明:在表单输入时进行了字符长度限制,但是在URL获得时没有进行长度限制,以导致与数据库字段长度不符合而出错. Code: '################################################## '################################################## sub doBookmarkAdd() dim tmpTree cp.loadPages() ctl.pages.setFormTitle(cp.subtitle) ctl.pages.setFormChannel("bookmark") ctl.pages.setFormFile(cp.module) ctl.pages.addFormVar "name",ops.request.getQueryc("name",50) ctl.pages.addFormVar "channel",cp.subchannel ctl.pages.addFormVar "groupid",0 ctl.pages.addFormVar "url",ops.request.getQueryc("url",200) ctl.pages.addFormVar "att.group",getBookgroupAtt() ctl.pages.setFormTree(tmpTree) ctl.pages.loadForm() if ctl.pages.isFormPost() then cp.doPagesParse() 'debug opsTest.toTreeString(treeData,"treeData") if ctl.e.isCheck() then treeData.addItem "_message",opsScript.JSMake(ctl.e.toJS(),"") else dim tmpFields tmpFields="g_id,nsort,userid,username,b_name,b_url,b_iscommon" treeData.addItem "username",user.username treeData.addItem "userid",user.userid call opsDBA.doExecuteInsert("db_user_bookmark",tmpFields,treeData) treeData.addItem "_message",opsScript.JSMake("您成功添加了一个书签!","?channel="&cp.subchannel&"&groupid="&groupid) end if end if 'debug ctl.pages.getDebug() end sub |
欢迎光临 世界之窗论坛 (http://bbs.theworld.cn./) | Powered by Discuz! 7.2 |