摘要:        
接口文档要求 定义方法 public function index(){ // 验证码标识 $id=mt_rand(100000, 999999); $uniqid = uniqid("$id"); //返回数据 验证码图片路径、验证码标识 $data = [ 'src' =>"http://www    阅读全文
posted @ 2022-11-24 14:18
哎呀呀哈
阅读(32)
评论(0)
推荐(0)
        
            
        
        
摘要:        
首先使用composer安装验证码扩展包 composer require topthink/think-captcha 然后在页面中展示 <img src="{:captcha_src()}" alt="captcha" /> 点击刷新验证码加个点击事件 <img src="{:captcha_s    阅读全文
posted @ 2022-11-24 09:47
哎呀呀哈
阅读(13)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号