|
|
@@ -1492,7 +1492,7 @@ class OrderClass extends BaseClass
|
|
|
$refundNum = $current['refundNum'] ?? 0;
|
|
|
$unitName = $current['unitName'] ?? '扎';
|
|
|
$remark = $current['remark'] ?? '';
|
|
|
- $ratioType = $current['ratioType'] === null ? -1 : $current['ratioType'];
|
|
|
+ $ratioType = $current['ratioType'] === null ? -1 : intval($current['ratioType']);
|
|
|
$ratio = $current['ratio'];
|
|
|
|
|
|
$lastNum = bcsub($itemNum, $refundNum);
|
|
|
@@ -1511,7 +1511,7 @@ class OrderClass extends BaseClass
|
|
|
if (floatval($unitPrice) == 0.01) {
|
|
|
$content .= $productNum . ' = ' . $productPrice . '元 赠送价<BR>';
|
|
|
}else{
|
|
|
- $content .= $productNum . ' = ' . $productPrice . '元 ' . ($ratioType==0 ? $ratio.'支装' : $ratioType==1 ? '若干支装' : '') . '<BR>';
|
|
|
+ $content .= $productNum . ' = ' . $productPrice . '元 ' . ($ratioType==0 ? $ratio.'支装' : ($ratioType==1 ? '若干支装' : '')) . '<BR>';
|
|
|
}
|
|
|
}
|
|
|
$content .= '--------------------------------<BR>';
|