|
|
@@ -993,6 +993,28 @@ class OrderController extends BaseController
|
|
|
}
|
|
|
PurchaseService::payAfter($cg, $payWay);
|
|
|
OrderService::payAfter($order, $payWay);
|
|
|
+
|
|
|
+ $order = OrderClass::getById($id, true);
|
|
|
+ if (!empty($order)) {
|
|
|
+ $shopId = $order->shopId ?? 0;
|
|
|
+ $shop = ShopClass::getById($shopId, true);
|
|
|
+ if (!empty($shop)) {
|
|
|
+ WxMessageClass::ghsHasNewOrderInform($shop, $order);
|
|
|
+ }
|
|
|
+ //订单生成时唤起在线打印
|
|
|
+ if (isset($order->needPrint) && $order->needPrint == dict::getDict('needPrint', 'need')) {
|
|
|
+ if ($order->status != 1 && $order->status != 5) {
|
|
|
+ OrderClass::onlinePrint($order);
|
|
|
+ $order->printNum += 1;
|
|
|
+ $order->save();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ($order->status != 1 && $order->status != 5) {
|
|
|
+ //花店采购供货商端收到通知
|
|
|
+ NoticeClass::ghsNewOrderNotice($order);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
util::complete();
|
|
|
}
|
|
|
|