shish 6 tahun lalu
induk
melakukan
1b70997e61
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      common/components/wxUtil.php

+ 2 - 2
common/components/wxUtil.php

@@ -1425,7 +1425,7 @@ class wxUtil
             return $behind . $fileName;
             return $behind . $fileName;
         }
         }
         $path = 'pages/home/user?scan=1&shopId=' . $shopId;
         $path = 'pages/home/user?scan=1&shopId=' . $shopId;
-        $accessToken = self::getMiniProgramAccessToken($merchant);
+        $accessToken = self::getMiniProgramAccessToken($merchant, $isOpen);
         $url = "https://api.weixin.qq.com/wxa/getwxacode?access_token={$accessToken}";
         $url = "https://api.weixin.qq.com/wxa/getwxacode?access_token={$accessToken}";
         $curl = new curl\Curl();
         $curl = new curl\Curl();
         $data = [
         $data = [
@@ -1451,7 +1451,7 @@ class wxUtil
         if (file_exists($file)) {
         if (file_exists($file)) {
             return $behind . $fileName;
             return $behind . $fileName;
         }
         }
-        $accessToken = self::getMiniProgramAccessToken($merchant);
+        $accessToken = self::getMiniProgramAccessToken($merchant, $isOpen);
         $url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={$accessToken}";
         $url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={$accessToken}";
         $curl = new curl\Curl();
         $curl = new curl\Curl();
         $data = [];
         $data = [];