|
|
@@ -1288,11 +1288,11 @@ 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 = util::getRootDir() . '/resource/images/miniExperience/' . $merchant['id'] . '.jpg';
|
|
|
+ $file = dirUtil::getImgDir() . '/retail/miniExperience/' . $merchant['id'] . '.jpg';
|
|
|
file_put_contents($file, $result);
|
|
|
echo "<img src='" . Yii::$app->params['imgHost'] . "/miniExperience/" . $merchant['id'] . ".jpg' />";
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//获取授权小程序帐号已设置的类目
|
|
|
public static function getMiniCategory($merchant)
|
|
|
{
|