账号通
    

账号  

密码  

1878

查看

1

回复
主题:[分享]9.0x考试系统有主观题估分,总分被强制四舍五入的BUG修复 [收藏主题]  
科汛官方 当前离线

47268

主题

145

广播

405

粉丝
添加关注
级别:管理员

用户积分:101604 分
登录次数:7935 次
注册时间:2006/12/7
最后登录:2023/12/14
科汛官方 发表于:2012/12/9 15:07:33   | 显示全部帖子 查看该作者主题 楼主 
科汛在线商城系统(NET)

问题如题,


如果考试估计总分为89.5分,则结果会变成90分的BUG


修改方法


打开mnkc/exam/finish.asp


找到

dim totalscore:totalscore=ks.chkclng(request("totalscore"))

改成以下代码即可。



dim totalscore:totalscore=request("totalscore")
if not isnumeric(totalscore) then totalscore=0



另一个文件是随机组卷的,修改文件为mnkc/exam/finishrnd.asp,同样按上面修改即可。

 
KesionCMS,,
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.06250秒 powered by KesionCMS 9.0