shish 4 лет назад
Родитель
Сommit
2f9681b42f
1 измененных файлов с 9 добавлено и 8 удалено
  1. 9 8
      biz-ghs/order/classes/OrderClass.php

+ 9 - 8
biz-ghs/order/classes/OrderClass.php

@@ -1032,19 +1032,20 @@ class OrderClass extends BaseClass
         }
 
         if (isset($orderInfo['debt']) && $orderInfo['debt'] == 1) {
+            $content .= "<BR>";
             $cgId = $orderInfo['purchaseId'] ?? 0;
             $content .= "<C><B>扫码结清本订单</B></C>";
             $content .= "<BR>";
             $host = Yii::$app->params['hdHost'];
             $content .= "<QR>" . $host . "/#/pagesPurchase/purDetails?id=" . $cgId . "</QR>";
-        }
-
-        $content .= "<BR>";
-        if ($debtAmount > 0) {
-            $content .= "<C><B>扫码查看所有欠款单</B></C>";
-            $content .= "<BR>";
-            $host = Yii::$app->params['hdHost'];
-            $content .= "<QR>" . $host . "/#/pagesPurchase/gathering?id=" . $ghsId . "</QR>";
+        } else {
+            if ($debtAmount > 0) {
+                $content .= "<BR>";
+                $content .= "<C><B>扫码查看所有欠款单</B></C>";
+                $content .= "<BR>";
+                $host = Yii::$app->params['hdHost'];
+                $content .= "<QR>" . $host . "/#/pagesPurchase/gathering?id=" . $ghsId . "</QR>";
+            }
         }
 
         $ext = ShopExtClass::getByCondition(['shopId' => $shopId]);