|
|
@@ -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'],
|