|
|
@@ -22,6 +22,24 @@ class GhsController extends BaseController
|
|
|
|
|
|
public $guestAccess = ['info', 'get-ghs-data'];
|
|
|
|
|
|
+ //提示花店有多个供货商
|
|
|
+ public function actionRemindMoreGhs()
|
|
|
+ {
|
|
|
+ $where = [];
|
|
|
+ $where['ownShopId'] = $this->shopId;
|
|
|
+ $where['delStatus'] = 0;
|
|
|
+ $count = GhsClass::getCount($where);
|
|
|
+ $needNotice = 0;
|
|
|
+ if ($count > 1) {
|
|
|
+ $admin = $this->admin;
|
|
|
+ $noticeHasMoreGhs = $admin->noticeHasMoreGhs ?? 0;
|
|
|
+ if ($noticeHasMoreGhs == 0) {
|
|
|
+ $needNotice = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ util::success(['needNotice' => $needNotice]);
|
|
|
+ }
|
|
|
+
|
|
|
public static $levelMap = [
|
|
|
'pt' => ['name' => '普店', 'num' => 0, 'amount' => 0, 'key' => ''],
|
|
|
'hj' => ['name' => '银店', 'num' => 0, 'amount' => 0, 'key' => 'hj'],
|
|
|
@@ -197,17 +215,6 @@ 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;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
util::success($respond);
|
|
|
}
|
|
|
|
|
|
@@ -264,7 +271,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;
|