Store the customized Shopro mall so it can be kept on the remote.

Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
wikiboss
2026-09-22 13:55:12 +08:00
当前提交 b87880e247
共有 2547 个文件被更改,包括 423496 次插入 和 0 次删除

查看文件

@@ -0,0 +1,35 @@
<?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;
}
}