|
@@ 373-379 (lines=7) @@
|
| 370 |
|
} |
| 371 |
|
|
| 372 |
|
$this->ValidateAmount('GoodsAmount', $this->PostParams['GoodsAmount']); |
| 373 |
|
if ( |
| 374 |
|
$this->PostParams['LogisticsSubType'] == LogisticsSubType::UNIMART || |
| 375 |
|
$this->PostParams['LogisticsSubType'] == LogisticsSubType::UNIMART_C2C |
| 376 |
|
) { |
| 377 |
|
// 物流子類型(LogisticsSubType)為統一超商(UNIMART)或統一超商交貨便(UNIMARTC2C)時,商品金額範圍為1~19,999元 |
| 378 |
|
$MaxAmount = 19999; |
| 379 |
|
} |
| 380 |
|
if ($this->PostParams['GoodsAmount'] < $MinAmount or $this->PostParams['GoodsAmount'] > $MaxAmount) { |
| 381 |
|
throw new Exception('Invalid GoodsAmount.'); |
| 382 |
|
} |
|
@@ 564-570 (lines=7) @@
|
| 561 |
|
} |
| 562 |
|
|
| 563 |
|
$this->ValidateAmount('GoodsAmount', $this->PostParams['GoodsAmount']); |
| 564 |
|
if ( |
| 565 |
|
$this->PostParams['LogisticsSubType'] == LogisticsSubType::UNIMART || |
| 566 |
|
$this->PostParams['LogisticsSubType'] == LogisticsSubType::UNIMART_C2C |
| 567 |
|
) { |
| 568 |
|
// 物流子類型(LogisticsSubType)為統一超商(UNIMART)或統一超商交貨便(UNIMARTC2C)時,商品金額範圍為1~19,999元 |
| 569 |
|
$MaxAmount = 19999; |
| 570 |
|
} |
| 571 |
|
if ($this->PostParams['GoodsAmount'] < $MinAmount or $this->PostParams['GoodsAmount'] > $MaxAmount) { |
| 572 |
|
throw new Exception('Invalid GoodsAmount.'); |
| 573 |
|
} |