@@ 447-452 (lines=6) @@ | ||
444 | $this->ValidateURL('ServerReplyURL', $this->PostParams['ServerReplyURL']); |
|
445 | $this->ValidateURL('ClientReplyURL', $this->PostParams['ClientReplyURL'], 200, true); |
|
446 | ||
447 | if ($this->PostParams['LogisticsSubType'] == LogisticsSubType::UNIMART_C2C) { |
|
448 | // 物流子類型(LogisticsSubType)為統一超商交貨便(UNIMARTC2C)時,此欄位不可為空 |
|
449 | $this->ValidateURL('LogisticsC2CReplyURL', $this->PostParams['LogisticsC2CReplyURL']); |
|
450 | } else { |
|
451 | $this->ValidateURL('LogisticsC2CReplyURL', $this->PostParams['LogisticsC2CReplyURL'], 200, true); |
|
452 | } |
|
453 | ||
454 | $this->ValidateString('Remark', $this->PostParams['Remark'], 200, true); |
|
455 | $this->ValidateID('PlatformID', $this->PostParams['PlatformID'], 10, true); |
|
@@ 637-642 (lines=6) @@ | ||
634 | $this->ValidateString('TradeDesc', $this->PostParams['TradeDesc'], 200, true); |
|
635 | $this->ValidateURL('ServerReplyURL', $this->PostParams['ServerReplyURL']); |
|
636 | ||
637 | if ($this->PostParams['LogisticsSubType'] == LogisticsSubType::UNIMART_C2C) { |
|
638 | // 物流子類型(LogisticsSubType)為統一超商交貨便(UNIMARTC2C)時,此欄位不可為空 |
|
639 | $this->ValidateURL('LogisticsC2CReplyURL', $this->PostParams['LogisticsC2CReplyURL']); |
|
640 | } else { |
|
641 | $this->ValidateURL('LogisticsC2CReplyURL', $this->PostParams['LogisticsC2CReplyURL'], 200, true); |
|
642 | } |
|
643 | ||
644 | $this->ValidateString('Remark', $this->PostParams['Remark'], 200, true); |
|
645 | $this->ValidateID('PlatformID', $this->PostParams['PlatformID'], 10, true); |