@@ 395-400 (lines=6) @@ | ||
392 | } |
|
393 | } |
|
394 | ||
395 | if ($this->PostParams['LogisticsSubType'] == LogisticsSubType::HILIFE_C2C or $this->PostParams['LogisticsSubType'] == LogisticsSubType::UNIMART_C2C) { |
|
396 | // 物流子類型(LogisticsSubType)為萊爾富店到店(HILIFEC2C)、 統一超商交貨便(UNIMARTC2C)時,不可為空 |
|
397 | $this->ValidateString('GoodsName', $this->PostParams['GoodsName'], 60); |
|
398 | } else { |
|
399 | $this->ValidateString('GoodsName', $this->PostParams['GoodsName'], 60, true); |
|
400 | } |
|
401 | ||
402 | $this->ValidateString('SenderName', $this->PostParams['SenderName'], 10); |
|
403 | $this->ValidatePhoneNumber('SenderPhone', $this->PostParams['SenderPhone'], true); |
|
@@ 586-591 (lines=6) @@ | ||
583 | } |
|
584 | } |
|
585 | ||
586 | if ($this->PostParams['LogisticsSubType'] == LogisticsSubType::HILIFE_C2C or $this->PostParams['LogisticsSubType'] == LogisticsSubType::UNIMART_C2C) { |
|
587 | // 物流子類型(LogisticsSubType)為萊爾富店到店(HILIFEC2C)、 統一超商交貨便(UNIMARTC2C)時,不可為空 |
|
588 | $this->ValidateString('GoodsName', $this->PostParams['GoodsName'], 60); |
|
589 | } else { |
|
590 | $this->ValidateString('GoodsName', $this->PostParams['GoodsName'], 60, true); |
|
591 | } |
|
592 | ||
593 | $this->ValidateString('SenderName', $this->PostParams['SenderName'], 10); |
|
594 | $this->ValidatePhoneNumber('SenderPhone', $this->PostParams['SenderPhone'], true); |