Merge branch 'main' of git.njrzwl.cn:wangmingchuan/yanzong into main

wxl
ztt 9 months ago
commit 5e50441f75
  1. 4
      app/common/library/wechat/Qrcode.php
  2. 2
      app/common/model/wxapp/Setting.php
  3. 2
      app/common/service/qrcode/InviteUser.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));

@ -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;
/**
* 微信小程序设置模型

@ -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);
}

Loading…
Cancel
Save