和蕙健康小程序后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
653 B

10 months ago
<?php
namespace addons\shopro\library\easywechatPlus;
/**
* 补充 easywechat
*/
class EasywechatPlus
{
protected $app = null;
public function __construct($app)
{
$this->app = $app;
}
// 返回实例
public function getApp()
{
return $this->app;
}
//获取accessToken
protected function getAccessToken()
{
$accessToken = $this->app->access_token;
$token = $accessToken->getToken(); // token 数组 token['access_token'] 字符串
//$token = $accessToken->getToken(true); // 强制重新从微信服务器获取 token.
return $token;
}
}