Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0 验证码captcha_src路径问题 #42

Open
hbh112233abc opened this issue Jun 21, 2019 · 0 comments
Open

3.0 验证码captcha_src路径问题 #42

hbh112233abc opened this issue Jun 21, 2019 · 0 comments

Comments

@hbh112233abc
Copy link

既然路由是针对应用的,那么在应用admin里开启路由

\think\facade\Route::get('captcha/[:id]', "\\think\\captcha\\CaptchaController@index");

那么访问验证码的地址应该是xxx.com/admin/captcha.html
所以验证码helper.php的captcha_src中

return Route::buildUrl('/captcha' . ($config ? "/{$config}" : ''));

这里的路径是不是不能直接是/captcha呢?
建议针对多应用改进.
我现在改为:

return Route::buildUrl('./captcha' . ($config ? "/{$config}" : ''));

请问这样会不会有其他问题呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant