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

+ 10 - 1
biz-ghs/order/classes/OrderClass.php

@@ -1030,9 +1030,18 @@ class OrderClass extends BaseClass
         if (!empty($mobile)) {
             $content .= '联系电话:' . $mobile . '<BR>';
         }
+
+        if (isset($orderInfo['debt']) && $orderInfo['debt'] == 1) {
+            $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>扫码结清欠款</C>";
+            $content .= "<C><B>扫码查看所有欠款单</B></C>";
             $content .= "<BR>";
             $host = Yii::$app->params['hdHost'];
             $content .= "<QR>" . $host . "/#/pagesPurchase/gathering?id=" . $ghsId . "</QR>";