|
|
@@ -18,13 +18,13 @@ use Illuminate\Support\Carbon;
|
|
|
|
|
|
class WeightService
|
|
|
{
|
|
|
- protected $weight = ''; // 重量
|
|
|
- protected $length = ''; // 长
|
|
|
- protected $width = ''; // 宽
|
|
|
- protected $height = ''; // 高
|
|
|
- protected $code = ''; // 快递单号
|
|
|
- protected $weight_at = ''; // 称重时间
|
|
|
- protected $hid = ''; // 称重设备id
|
|
|
+ public $weight = ''; // 重量
|
|
|
+ public $length = ''; // 长
|
|
|
+ public $width = ''; // 宽
|
|
|
+ public $height = ''; // 高
|
|
|
+ public $code = ''; // 快递单号
|
|
|
+ public $weight_at = ''; // 称重时间
|
|
|
+ public $hid = ''; // 称重设备id
|
|
|
public $name = ''; // 名称
|
|
|
|
|
|
public function new(array $params): array
|
|
|
@@ -92,8 +92,7 @@ class WeightService
|
|
|
return $this->getWeightMessage($orderPackage, $e);
|
|
|
}
|
|
|
|
|
|
- $result = $this->getSuccessMessage($params, $orderPackage);
|
|
|
- return $result;
|
|
|
+ return $this->getSuccessMessage($params, $orderPackage);
|
|
|
}
|
|
|
|
|
|
|