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
2个小程序 公用的一套接口 #2631
Comments
Array |
2个微信小程序 ,可以公用一套代码吗?但是我在__construct 实例化时做了区分。结果手机号一直提示access_token 错误 ,access_token 有值 |
|
所以提问的时候为啥要清空模板不按模版来提问呢?没有上下文别人很难帮助你啊。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`
public function __construct($soft_type = '')
{
if ($soft_type == 'love_my') {
$this->app_id = 'wx98a8164';
$this->secret = 'f090bc71436883527ea65258';
} else {
$this->app_id = env('WECHAT_MINI_PROGRAM_APPID');
$this->secret = env('WECHAT_MINI_PROGRAM_SECRET');
}
The text was updated successfully, but these errors were encountered: