|
|
@@ -1454,7 +1454,7 @@ class wxUtil
|
|
|
$url = "https://api.weixin.qq.com/wxa/get_qrcode?access_token={$accessToken}&path=" . $path;
|
|
|
$curl = new curl\Curl();
|
|
|
$result = $curl->get($url);
|
|
|
- $file = dirUtil::getImgDir() . '/retail/miniExperience/' . $merchant['id'] . '.jpg';
|
|
|
+ $file = dirUtil::getImgDir() . 'retail/miniExperience/' . $merchant['id'] . '.jpg';
|
|
|
file_put_contents($file, $result);
|
|
|
//上传oss
|
|
|
$obj = 'retail/miniExperience/' . $merchant['id'] . '.jpg';
|
|
|
@@ -1585,7 +1585,7 @@ class wxUtil
|
|
|
public static function generateMemberCode($merchant, $shopId, $isOpen = 0)
|
|
|
{
|
|
|
$fileName = $merchant['id'] . '_' . $shopId . '_apply_member.jpg';
|
|
|
- $behind = '/retail/mimiMemberCode/';
|
|
|
+ $behind = 'retail/mimiMemberCode/';
|
|
|
$filePath = dirUtil::getImgDir() . $behind;
|
|
|
if (!file_exists($filePath)) {
|
|
|
mkdir($filePath, 0777, true);
|
|
|
@@ -1611,7 +1611,7 @@ class wxUtil
|
|
|
public static function generateGatheringMiniCode($merchant, $shopId, $isOpen = 0)
|
|
|
{
|
|
|
$fileName = $merchant['id'] . '_' . $shopId . '_apply_member.jpg';
|
|
|
- $behind = '/retail/gatheringMimiCode/';
|
|
|
+ $behind = 'retail/gatheringMimiCode/';
|
|
|
$filePath = dirUtil::getImgDir() . $behind;
|
|
|
if (!file_exists($filePath)) {
|
|
|
mkdir($filePath, 0777, true);
|