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

+ 3 - 12
biz-ghs/order/classes/OrderClass.php

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