mirror of
https://github.com/kuaifan/dootask.git
synced 2026-07-02 20:35:11 +00:00
fix(users): 登录验证码图片在 intervention/image v4 下返回 {} 无法加载
mews/captcha 3.5 的 toDataUri() 在 intervention/image v4 返回 DataUri 对象而非
字符串,json 序列化成 {} 导致前端 img 加载失败。控制器侧强制转为字符串修复。
This commit is contained in:
parent
b589307ebb
commit
c067991e3e
@ -276,6 +276,7 @@ class UsersController extends AbstractController
|
||||
public function login__codejson()
|
||||
{
|
||||
$captcha = Captcha::create('default', true);
|
||||
$captcha['img'] = (string)$captcha['img'];
|
||||
return Base::retSuccess('请求成功', $captcha);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user