|
|
@@ -100,8 +100,6 @@ class OrderController extends BaseController
|
|
|
try {
|
|
|
OrderClass::orderSend($order, $params);
|
|
|
$transaction->commit();
|
|
|
- //小程序通知发货
|
|
|
- //\bizHd\notice\classes\NoticeClass::orderFhMiniNotice($order);
|
|
|
util::complete();
|
|
|
} catch (\Exception $e) {
|
|
|
$transaction->rollBack();
|
|
|
@@ -898,11 +896,16 @@ class OrderController extends BaseController
|
|
|
$shop = ShopClass::getById($shopId, true);
|
|
|
if (isset($order->payStatus) && $order->payStatus == 1) {
|
|
|
if (!empty($shop)) {
|
|
|
- //花店采购供货商端收到微信通知
|
|
|
- //WxMessageClass::ghsHasNewOrderInform($shop, $order);
|
|
|
+ //通知员工
|
|
|
$noticeText = json_encode(['orderId' => $saleId]);
|
|
|
$noticeKey = "hdCgNoticeGhs";
|
|
|
Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
|
|
|
+
|
|
|
+ //通知花店
|
|
|
+ $noticeText = json_encode(['id' => $order->purchaseId]);
|
|
|
+ $noticeKey = "ghsKdNoticeHd";
|
|
|
+ Yii::$app->redis->executeCommand('LPUSH', [$noticeKey, $noticeText]);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
//订单生成时唤起在线打印
|