Little Wechat official account project, which does not use composer packages such as easywechat, but is developed by pure source laravel
when obtaining openid, to determine whether url code, does not exist, header ("location:xxx")
to exchange for code, and then curl to get openid, but after each time, you can save session directly, and you can also take it out. However, when you request other pages, the data in session does not exist. It is suspected that it may be due to the redirection problem that the same session, does not know how to handle it.