|
|
@@ -421,24 +421,19 @@ class OrderController extends BaseController
|
|
|
$id = $return->id ?? 0;
|
|
|
$order = OrderClass::getById($id, true);
|
|
|
|
|
|
- //商家自己开的微信、门店和美团单,默认不打小票,其它情况打小票
|
|
|
- if ($order->fromType == 1 || $order->fromType == 3 || $order->fromType == 4) {
|
|
|
- //美团一般都会生成制作单,要通过声音提示制作台
|
|
|
- if ($order->fromType == 4) {
|
|
|
- $shopExt = ShopExtClass::getByCondition(['shopId' => $this->shopId], true);
|
|
|
- ShopExtClass::newMtWork($shopExt, $order);
|
|
|
- }
|
|
|
- } else {
|
|
|
- OrderClass::onlinePrint($order);
|
|
|
- }
|
|
|
-
|
|
|
+ //前台打小票
|
|
|
+ OrderClass::onlinePrint($order);
|
|
|
+ //前台云喇叭提示收款金额
|
|
|
ShopExtClass::hdGatheringReport($order);
|
|
|
-
|
|
|
+ //前台提醒出示付款码
|
|
|
if (isset($order->status) && $order->status == 1) {
|
|
|
if (isset($post['isCashier']) && $post['isCashier'] == 1) {
|
|
|
ShopExtClass::pleasePayReport($order);
|
|
|
}
|
|
|
}
|
|
|
+ //制作台和美团制作台提示
|
|
|
+ $shopExt = ShopExtClass::getByCondition(['shopId' => $this->shopId], true);
|
|
|
+ ShopExtClass::newWorkRemind($shopExt, $order);
|
|
|
|
|
|
util::success($return);
|
|
|
} catch (\Exception $e) {
|