Ver Fonte

显示累计待结问题

shish há 7 meses atrás
pai
commit
4da447abc3
1 ficheiros alterados com 8 adições e 0 exclusões
  1. 8 0
      app-hd/controllers/PurchaseController.php

+ 8 - 0
app-hd/controllers/PurchaseController.php

@@ -1006,6 +1006,14 @@ class PurchaseController extends BaseController
         $info['ghsMobile'] = $ghsShopInfo->telephone ?? '';
         $info['ghsMobile2'] = $ghsShopInfo->telephone2 ?? '';
         $info['hasRenew'] = 1;
+
+        //如果是快捷开单,则不需要显示累计待结,因为商家经常把快捷开单的订单发给客户结账
+        $showForPay = 1;
+        if ($ghsShopInfo->skCustomId == $info['customId']) {
+            $showForPay = 0;
+        }
+        $info['showForPay'] = $showForPay;
+
         util::success($info);
     }