diff --git a/app/common/library/wechat/Qrcode.php b/app/common/library/wechat/Qrcode.php index 8f760926..00fc1d7d 100644 --- a/app/common/library/wechat/Qrcode.php +++ b/app/common/library/wechat/Qrcode.php @@ -38,8 +38,8 @@ class Qrcode extends WxBase $url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={$accessToken}"; // 构建请求 $data = compact('scene', 'width'); -// $data['env_version'] = 'trial'; -// $data['check_path'] = false; + //$data['env_version'] = 'trial'; + $data['check_path'] = false; !is_null($page) && $data['page'] = $page; // 返回结果 $result = $this->post($url, helper::jsonEncode($data)); diff --git a/app/common/model/wxapp/Setting.php b/app/common/model/wxapp/Setting.php index 068324fb..f1ff8261 100644 --- a/app/common/model/wxapp/Setting.php +++ b/app/common/model/wxapp/Setting.php @@ -12,9 +12,9 @@ declare (strict_types=1); namespace app\common\model\wxapp; +use app\common\library\helper; use cores\BaseModel; use think\facade\Cache; -use app\common\library\helper; /** * 微信小程序设置模型 diff --git a/app/common/service/qrcode/InviteUser.php b/app/common/service/qrcode/InviteUser.php index d59b78d3..eea4cd86 100644 --- a/app/common/service/qrcode/InviteUser.php +++ b/app/common/service/qrcode/InviteUser.php @@ -57,7 +57,7 @@ class InviteUser extends BaseQRcode $scene = "refereeId:" . ($this->userInfo['user_id'] ?: ''); // 下载小程序码 $page = 'pages/login/index'; - $qrcode = $this->getQrcode($storeId, $scene, null, $this->channel); + $qrcode = $this->getQrcode($storeId, $scene, $page, $this->channel); // 拼接海报图 return $this->savePoster($backdrop, $qrcode); }