We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
namespace Hanson\LaravelAdminWechat\Services; use Illuminate\Support\Facades\Cache; class MiniService { /** * 通过 code 获取 session 信息 * * @param string $appId * @param string $code * @return array|\EasyWeChat\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException */ public function session(string $appId, string $code) { $app = \Hanson\LaravelAdminWechat\Facades\ConfigService::getInstanceByAppId($appId); $result = $app->auth->session($code); Cache::forever($this->getSessionKey($result['openid']), $result['session_key']); return $result; }
The text was updated successfully, but these errors were encountered:
不捕捉的原因是因为这里一般都是因为配置错误导致的,可以把你的错误复制出来
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: