shish 1 rok temu
rodzic
commit
110b52e330
1 zmienionych plików z 11 dodań i 1 usunięć
  1. 11 1
      app-hd/controllers/PurchaseController.php

+ 11 - 1
app-hd/controllers/PurchaseController.php

@@ -626,12 +626,22 @@ class PurchaseController extends BaseController
                     } else {
 
                         OrderClass::onlinePrint($order);
-
                         $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true);
                         if (isset($ext->printSn) && !empty($ext->printSn)) {
                             $order->printNum += 1;
                             $order->save();
                         }
+
+                        //小齐鲜花打二次小票,有多处要修改搜索关键词tow_print
+                        if (in_array($order->mainId, [40624])) {
+                            OrderClass::onlinePrint($order);
+                            $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true);
+                            if (isset($ext->printSn) && !empty($ext->printSn)) {
+                                $order->printNum += 1;
+                                $order->save();
+                            }
+                        }
+
                     }
                 }