|
|
@@ -608,16 +608,9 @@ class NoticeController extends PublicController
|
|
|
Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
|
|
|
|
|
|
//向供货商端APP发通知
|
|
|
- $allDevices = \bizGhs\device\classes\GhsDeviceClass::getAllByCondition(['shopId'=>$shopId]);
|
|
|
- $cids = array_column($allDevices, 'clientId');
|
|
|
- $title = '你有新的订单';
|
|
|
- $content = $shop->shopName . ' ¥' . $order->actPrice;
|
|
|
- $payload = [
|
|
|
- "page" => "pagesOrder/detail",
|
|
|
- "params" => ["id" => $order->id]
|
|
|
- ];
|
|
|
+ $cgShop = ShopClass::getById($cg->shopId, true, 'shopName, merchantName');
|
|
|
$push = new push('ghs', push::MSG_TYPE_ORDER);
|
|
|
- $push->pushByCloud($cids, $title, $content, $payload);
|
|
|
+ $push->ghsOrderMessage($shop, $cgShop, $order);
|
|
|
}
|
|
|
//花店采购供货商端APP收到通知
|
|
|
//NoticeClass::ghsNewOrderNotice($order);
|