|
|
@@ -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;
|