|
@@ 1033-1037 (lines=5) @@
|
| 1030 |
|
$QuantityNumber = count(explode('#', $this->PostParams['Quantity'])); |
| 1031 |
|
$CostNumber = count(explode('#', $this->PostParams['Cost'])); |
| 1032 |
|
|
| 1033 |
|
if (! empty($this->PostParams['GoodsName']) and ! empty($this->PostParams['Quantity'])) { |
| 1034 |
|
if ($GoodsNameNumber != $QuantityNumber) { |
| 1035 |
|
throw new Exception('GoodsName number and Quantity number do not match.'); |
| 1036 |
|
} |
| 1037 |
|
} |
| 1038 |
|
|
| 1039 |
|
if (! empty($this->PostParams['Quantity']) and ! empty($this->PostParams['Cost'])) { |
| 1040 |
|
if ($GoodsNameNumber != $CostNumber) { |
|
@@ 1039-1043 (lines=5) @@
|
| 1036 |
|
} |
| 1037 |
|
} |
| 1038 |
|
|
| 1039 |
|
if (! empty($this->PostParams['Quantity']) and ! empty($this->PostParams['Cost'])) { |
| 1040 |
|
if ($GoodsNameNumber != $CostNumber) { |
| 1041 |
|
throw new Exception('Quantity number and Cost number do not match.'); |
| 1042 |
|
} |
| 1043 |
|
} |
| 1044 |
|
|
| 1045 |
|
if (! empty($this->PostParams['Cost']) and ! empty($this->PostParams['GoodsName'])) { |
| 1046 |
|
if ($GoodsNameNumber != $CostNumber) { |
|
@@ 1045-1049 (lines=5) @@
|
| 1042 |
|
} |
| 1043 |
|
} |
| 1044 |
|
|
| 1045 |
|
if (! empty($this->PostParams['Cost']) and ! empty($this->PostParams['GoodsName'])) { |
| 1046 |
|
if ($GoodsNameNumber != $CostNumber) { |
| 1047 |
|
throw new Exception('Cost number and GoodsName number do not match.'); |
| 1048 |
|
} |
| 1049 |
|
} |
| 1050 |
|
|
| 1051 |
|
$MinAmount = 1; // 金額下限 |
| 1052 |
|
$MaxAmount = 20000; // 金額上限 |