|
|
@@ -48,7 +48,28 @@ class NoticeClass extends BaseClass
|
|
|
continue;
|
|
|
}
|
|
|
$adminId = $admin['id'] ?? 0;
|
|
|
- pushNotice::push($adminId, $clientId, '提现到账通知', $amount.'元已到账,请查收');
|
|
|
+ pushNotice::push($adminId, $clientId, '提现到账通知', $amount . '元已到账,请查收');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //新客户通知 shish 20210115
|
|
|
+ public static function newCustomNotice($shop, $custom)
|
|
|
+ {
|
|
|
+ $shopId = $shop->id;
|
|
|
+ $ptStyle = $shop->ptStyle;
|
|
|
+ $name = $custom->name ?? '';
|
|
|
+ Yii::$app->params['ptStyle'] = $ptStyle;
|
|
|
+ $adminList = ShopAdminClass::getRemainAdmin($shopId);
|
|
|
+ if (empty($adminList)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ foreach ($adminList as $admin) {
|
|
|
+ $clientId = $admin['clientId'] ?? '';
|
|
|
+ if (empty($clientId)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ $adminId = $admin['id'] ?? 0;
|
|
|
+ pushNotice::push($adminId, $clientId, '新客户加入', $name);
|
|
|
}
|
|
|
}
|
|
|
|