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