|
@@ -1343,13 +1343,13 @@ class OrderController extends BaseController
|
|
|
//Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
|
|
//Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
|
|
|
|
|
|
|
|
Yii::info('向花店App发通知');
|
|
Yii::info('向花店App发通知');
|
|
|
- $custom = CustomClass::getById($order->customId);
|
|
|
|
|
- $customShop = ShopClass::getById($custom['shopId'], true, 'merchantName, shopName');
|
|
|
|
|
|
|
+ //$custom = CustomClass::getById($order->customId);
|
|
|
|
|
+ //$customShop = ShopClass::getById($custom['shopId'], true, 'merchantName, shopName');
|
|
|
//向花店App发通知
|
|
//向花店App发通知
|
|
|
$allDevices = \bizHd\device\classes\HdDeviceClass::getAllByCondition(['shopId'=>$custom['shopId']]);
|
|
$allDevices = \bizHd\device\classes\HdDeviceClass::getAllByCondition(['shopId'=>$custom['shopId']]);
|
|
|
$cids = array_column($allDevices, 'clientId');
|
|
$cids = array_column($allDevices, 'clientId');
|
|
|
$title = '买花成功';
|
|
$title = '买花成功';
|
|
|
- $shopName = $customShop->merchantName . ($customShop->shopName != '首店' ? '(' . $customShop->shopName . ')' : '');
|
|
|
|
|
|
|
+ $shopName = $shop->merchantName . ($shop->shopName != '首店' ? '(' . $shop->shopName . ')' : '');
|
|
|
$content = $shopName . ' ¥' . $order->actPrice;
|
|
$content = $shopName . ' ¥' . $order->actPrice;
|
|
|
$payload = [
|
|
$payload = [
|
|
|
"page" => "pagesPurchase/purDetails",
|
|
"page" => "pagesPurchase/purDetails",
|