|
@@ 437-440 (lines=4) @@
|
| 434 |
|
throw new Exception('Temperature should be ROOM when LogisticsSubType is ECAN.'); |
| 435 |
|
} |
| 436 |
|
|
| 437 |
|
if ($this->PostParams['LogisticsSubType'] == LogisticsSubType::ECAN and date('Ymd', strtotime($this->PostParams['ScheduledDeliveryDate'])) < date('Ymd', strtotime('+3 day'))) { |
| 438 |
|
// 指定送達日期為該訂單建立時間 + 3 天 |
| 439 |
|
throw new Exception('ScheduledDeliveryDate should be the time that create order + 3 day.'); |
| 440 |
|
} |
| 441 |
|
|
| 442 |
|
$this->ValidateEmail('ReceiverEmail', $this->PostParams['ReceiverEmail'], 50, true); |
| 443 |
|
$this->ValidateString('TradeDesc', $this->PostParams['TradeDesc'], 200, true); |
|
@@ 628-631 (lines=4) @@
|
| 625 |
|
throw new Exception('Temperature should be ROOM when LogisticsSubType is ECAN.'); |
| 626 |
|
} |
| 627 |
|
|
| 628 |
|
if ($this->PostParams['LogisticsSubType'] == LogisticsSubType::ECAN and date('Ymd', strtotime($this->PostParams['ScheduledDeliveryDate'])) < date('Ymd', strtotime('+3 day'))) { |
| 629 |
|
// 指定送達日期為該訂單建立時間 + 3 天 |
| 630 |
|
throw new Exception('ScheduledDeliveryDate should be the time that create order + 3 day.'); |
| 631 |
|
} |
| 632 |
|
|
| 633 |
|
$this->ValidateEmail('ReceiverEmail', $this->PostParams['ReceiverEmail'], 50, true); |
| 634 |
|
$this->ValidateString('TradeDesc', $this->PostParams['TradeDesc'], 200, true); |
|
@@ 821-824 (lines=4) @@
|
| 818 |
|
throw new Exception('Temperature should be ROOM when LogisticsSubType is ECAN.'); |
| 819 |
|
} |
| 820 |
|
|
| 821 |
|
if ($this->PostParams['LogisticsSubType'] == LogisticsSubType::ECAN and date('Ymd', strtotime($this->PostParams['ScheduledDeliveryDate'])) < date('Ymd', strtotime('+3 day'))) { |
| 822 |
|
// 指定送達日期為該訂單建立時間 + 3 天 |
| 823 |
|
throw new Exception('ScheduledDeliveryDate should be the time that create order + 3 day.'); |
| 824 |
|
} |
| 825 |
|
|
| 826 |
|
$this->ValidateAmount('GoodsAmount', $this->PostParams['GoodsAmount']); |
| 827 |
|
if ($this->PostParams['GoodsAmount'] < $MinAmount or $this->PostParams['GoodsAmount'] > $MaxAmount) { |