Quellcode durchsuchen

只用于采购时才提示

shish vor 1 Jahr
Ursprung
Commit
7dd6b120cd
1 geänderte Dateien mit 7 neuen und 3 gelöschten Zeilen
  1. 7 3
      app-hd/controllers/GhsController.php

+ 7 - 3
app-hd/controllers/GhsController.php

@@ -198,13 +198,17 @@ class GhsController extends BaseController
         }
         $respond['showAd'] = $showAd;
 
-        //告之有多家供货商
+        //告之有多家供货商
         $list = $respond['list'] ?? [];
         if (count($list) > 1) {
             $admin = $this->admin;
             $noticeHasMoreGhs = $admin->noticeHasMoreGhs ?? 0;
             if ($noticeHasMoreGhs == 0) {
-                $respond['needNotice'] = 1;
+                $shop = $this->shop;
+                if ($shop->onlyCg == 1) {
+                    //花掌柜只用于采购,没有其它作用时,需要通知
+                    $respond['needNotice'] = 1;
+                }
             }
         }
 
@@ -264,7 +268,7 @@ class GhsController extends BaseController
         $info['shareLogo'] = $shareLogo;
         $info['superWx'] = '';
         if (!empty($ghsShop->superWx)) {
-            $info['superWx'] = imgUtil::groupImg($ghsShop->superWx). "?x-oss-process=image/resize,w_150";
+            $info['superWx'] = imgUtil::groupImg($ghsShop->superWx) . "?x-oss-process=image/resize,w_150";
         }
 
         $ghsMainId = $ghsShop->mainId ?? 0;