|
|
@@ -132,10 +132,13 @@ class OrderClass extends BaseClass
|
|
|
$data['prePrice'] = $currentPrice;
|
|
|
$actPrice = $currentPrice;
|
|
|
$realPrice = $currentPrice;
|
|
|
-
|
|
|
- //商家自己开单时
|
|
|
+
|
|
|
+ //商家自己开单时
|
|
|
if (isset($data['modifyPrice'])) {
|
|
|
$modifyPrice = $data['modifyPrice'] ?? 0;
|
|
|
+ if ($modifyPrice <= 0) {
|
|
|
+ util::fail('收款金额必须大于0');
|
|
|
+ }
|
|
|
if ($modifyPrice > $currentPrice) {
|
|
|
//人工和资材费用
|
|
|
$data['labourCost'] = bcsub($modifyPrice, $currentPrice, 2);
|