shish há 3 anos atrás
pai
commit
a77806bed5
1 ficheiros alterados com 5 adições e 5 exclusões
  1. 5 5
      app-ghs/controllers/MainController.php

+ 5 - 5
app-ghs/controllers/MainController.php

@@ -59,17 +59,17 @@ class MainController extends BaseController
     public function actionGetMallPoster()
     {
         $merchant = WxOpenClass::getWxInfo();
-        $page = 'pagesPurchase / ghsProduct';
+        $page = 'pagesPurchase/ghsProduct';
         $ptStyle = dict::getDict('ptStyle', 'hd');
         //scene不能超过32个字条,这些进行缩写:sId = shopId gId = ghsShopAdminId
         $scene = "sId={$this->shopId}&id=0&gId=" . $this->shopAdminId;
         $imgUrl = miniUtil::generateUnlimitedMiniCode($merchant, $page, $scene, $ptStyle);
         $titleBase64 = stringUtil::ossBase64('花店买花');
         $prefix = imgUtil::getPrefix();
-        $url = $prefix . 'shop / miniCodeBg . jpg ? x - oss - process = image';
+        $url = $prefix . 'shop/miniCodeBg.jpg?x-oss-process=image';
         $goodsMiniCodeBase64 = stringUtil::ossBase64($imgUrl);
-        $url .= ' / watermark,image_' . $goodsMiniCodeBase64 . ',g_north,x_0,y_40';
-        $url .= ' / watermark,text_' . $titleBase64 . ',g_north,x_0,y_530,size_50';
+        $url .= '/watermark,image_' . $goodsMiniCodeBase64 . ',g_north,x_0,y_40';
+        $url .= '/watermark,text_' . $titleBase64 . ',g_north,x_0,y_530,size_50';
         $respond = ['imgUrl' => $url];
         util::success($respond);
     }
@@ -230,7 +230,7 @@ class MainController extends BaseController
         $money = $main->money ?? 0;
         $cashAccount = $main->cashAccount ?? '';
         $sj = isset($this->sj) && !empty($this->sj) ? $this->sj->attributes : [];
-        $shopImg = Yii::$app->params['ghsImgHost'] . 'retail /default-img . png';
+        $shopImg = Yii::$app->params['ghsImgHost'] . 'retail/default-img.png';
         $deadline = $sj['deadline'] ?? '';
         $relation = isset($this->shopAdmin) && !empty($this->shopAdmin) ? $this->shopAdmin->attributes : [];
         $adminName = $relation['name'] ?? '';