企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 验证码问题 shopnc中的验证码: ~~~javascript // by: /wap/js/common.js function loadSeccode(){ $("#codekey").val(''); //加载验证码 $.ajax({ type:'get', url:ApiUrl+"/index.php?act=seccode&op=makecodekey", async : false, dataType: 'json', success:function(result){ $("#codekey").val(result.datas.codekey); } }); $("#codeimage").attr('src',ApiUrl+'/index.php?act=seccode&op=makecode&k='+$("#codekey").val()+'&t=' + Math.random()); } ~~~ 每个验证码,有一个key用作“作用域”,这样就能解决多页面验证码冲突覆盖的问题,而tp中的验证码是自动利用页面url做key,原理都是类似的。 不过要意识到,多页面冲突的问题就可以了。 last update:2018-3-20 19:59:49