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

Closed
Hanson opened this issue Apr 8, 2017 · 8 comments
Closed

验证码问题 #3

Hanson opened this issue Apr 8, 2017 · 8 comments

Comments

@Hanson
Copy link

Hanson commented Apr 8, 2017

部署服务器上发现报错,需要输入验证码,不知这种情况需要如何解决?

@consatan
Copy link
Owner

consatan commented Apr 8, 2017

出现验证码可能是因为服务器 IP 不是常用 IP 导致的
我测试过在常用 IP 上上传图片,然后把保存的 cookie 复制到服务器上使用是可以避免出现验证码的

感觉还可以挂服务器 IP 代理,然后用网页端登入使服务器 IP 成为常用 IP,然后再部署

@Hanson
Copy link
Author

Hanson commented Apr 8, 2017

嗯。我现在就正在服务器挂shadowsock,感觉很蛋疼

@Hanson
Copy link
Author

Hanson commented Apr 8, 2017

我用代理也是不行。你的传cookie是怎样的?

@consatan
Copy link
Owner

consatan commented Apr 8, 2017

我用的 cache 是本地文件,就直接把项目根目录下的 cache 文件夹复制到服务器上

@Hanson
Copy link
Author

Hanson commented Apr 8, 2017

有点麻烦,但总算好了

http://img.hanc.cc/

这是这个项目,https://github.com/HanSon/img

我也会推广一下,顺带推广你的包 😃

@Hanson Hanson closed this as completed Apr 8, 2017
@consatan
Copy link
Owner

consatan commented Apr 8, 2017

下一步计划增加出现验证码时保存验证码图片,待手动输入验证码后保存 cookie

@Hanson
Copy link
Author

Hanson commented Apr 8, 2017

👍 期待,今天突然想写图床,就搜了一下,就只搜到你这个包,加油

consatan added a commit that referenced this issue Apr 21, 2017
增加 cli 下输入验证码示例代码
@consatan
Copy link
Owner

验证码问题已解决,cli 模式下可参考 expamle/cli.php
web 模式下,可直接将验证码抛给用户,让用户输入。当出现验证码时,除非提交验证码,否则所有用户看到的都是同一个验证码。

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

2 participants