TP5.0r4的url绑定模块后,验证码就不能显示了,日志如下

浏览:1365 发布日期:2016/08/03 分类:ThinkPHP5专区 关键字: 验证码 路由
单一模块,在公共文件common.php中加了\think\Route::bind('zxzx');这个是绑定路由前,验证码正常显示[ 2016-08-02T10:05:18+08:00 ] 127.0.0.1 127.0.0.1 GET /captcha.html
[ log ] 127.0.0.1:8088/captcha.html [运行时间:0.037000s][吞吐率:27.03req/s] [内存消耗:1,314.27kb] [文件加载:28]
[ info ] [ ROUTE ] array (
  'type' => 'method',
  'method' => 
  array (
    0 => '\\think\\captcha\\CaptchaController',
    1 => 'index',
  ),
  'params' => 
  array (
    'id' => NULL,
  ),
)
[ info ] [ RUN ] Method [ <user> public method index ] {
  @@ E:\wamp64\www\zxzx\vendor\topthink\think-captcha\src\CaptchaController.php 18 - 22

  - Parameters [1] {
    Parameter #0 [ <optional> $id = '' ]
  }
}

[ info ] [ SESSION ] INIT array (
  'auto_start' => true,
  'name' => 'zxzx@',
  'expire' => 1800,
)
[ info ] [ LOG ] INIT File: array (
  'path' => 'E:\\wamp64\\www\\zxzx\\public/..\\runtime\\log\\',
  'level' => 
  array (
  ),
)
绑定路由后:[ 2016-08-02T10:06:37+08:00 ] 127.0.0.1 127.0.0.1 GET /captcha.html
[ log ] 127.0.0.1:8088/captcha.html [运行时间:0.042000s][吞吐率:23.81req/s] [内存消耗:1,301.92kb] [文件加载:31]
[ info ] [ BIND ] array (
  'type' => 'module',
  'module' => 'zxzx',
)
[ info ] [ ROUTE ] array (
  'type' => 'module',
  'module' => 
  array (
    0 => 'zxzx',
    1 => 'captcha',
    2 => NULL,
  ),
)
[ info ] [ LANG ] E:\wamp64\www\zxzx\thinkphp\lang\zh-cn.php
[ info ] [ LOG ] INIT File: array (
  'path' => 'E:\\wamp64\\www\\zxzx\\public/..\\runtime\\log\\',
  'level' => 
  array (
  ),
)
可以看出这个验证码的路由规则因为我绑定路由的原因一下改变了,显示不出来很正常,只是怎么解决这个冲突呢?鱼与熊掌不可兼得???
最佳答案
评论( 相关
后面还有条评论,点击查看>>