|
|
@@ -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]);
|