DeliveryInterface.php 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Services\Interfaces;
  3. use Illuminate\Support\Str;
  4. interface DeliveryInterface
  5. {
  6. /*
  7. * 'type' => 'CAINIAO', // 需要前台过沟通的组件
  8. * 'task_id' => Str::uuid() // 组件打印任务id
  9. * 'is_process' => false, // is_process 是否已通过自定义模板处理
  10. * 'data' => $item['userdefine1'], // 组件所需要的数据
  11. * 'component_type' => 'TB', // 富勒下发的接口
  12. * 'owner_code' => h // 货主
  13. * 'logistic_code' => // 承运商
  14. * 'logistic_number' => // 快递单号
  15. * 'delivery' => $this->getDelivery($item),
  16. * 'base64' => // 快递面单的base64编码
  17. */
  18. function getDeliveryInfo($oracleDocOrderDeliveryInfos);
  19. function getDelivery($item);
  20. /**
  21. * 获取打印图片的base64编码
  22. * @param $item
  23. * @return mixed
  24. */
  25. function getBase64($item);
  26. }