|
|
|
@ -50,11 +50,11 @@ class Delivery extends BaseService |
|
|
|
|
*/ |
|
|
|
|
public function delivery(int $orderId, array $param): bool |
|
|
|
|
{ |
|
|
|
|
if(empty($param['expressId'])) { |
|
|
|
|
if(empty($param['expressId'] && $param['delivery']!=20)) { |
|
|
|
|
$this->error = '物流公司不能为空'; |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
if (empty($param['expressNo'])) { |
|
|
|
|
if (empty($param['expressNo'] && $param['delivery']!=20)) { |
|
|
|
|
$this->error = '物流单号不能为空'; |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|