google->verifyCode($token, $code);
return $res;
}
/**
* Notes:生成谷歌二维码$google = new Google();
try {
$secret = $google->createSecret(32);//生成密钥$src = $google->getQRCodeGoogleUrl( env("app_name"),$secret);//生成二维码return $this->back("谷歌验证码生成成功",1,[
'secret' => $secret,'src' => $src