OrderBuyerPackageSendMinNotice.php 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2020/6/14
  6. * Time: 8:26
  7. */
  8. namespace app\common\services\notice\applet\buyer;
  9. use app\common\models\Order;
  10. use app\common\services\notice\applet\AppletMessageNotice;
  11. use app\common\services\notice\BaseMessageBody;
  12. use app\common\services\notice\share\MiniNoticeTemplate;
  13. use app\common\services\notice\share\OrderNoticeData;
  14. class OrderBuyerPackageSendMinNotice extends OrderBuyerSendMinNotice
  15. {
  16. public function organizeData()
  17. {
  18. $this->data = [
  19. 'character_string7'=>['value'=> $this->checkDataLength($this->order->order_sn,32)],//订单号
  20. 'amount9'=>['value'=> $this->order['price']],// 订单金额
  21. 'thing5'=>['value'=> $this->checkDataLength($this->packageGoodsTitle,20)],//商品信息
  22. 'date6'=>['value'=> $this->timeData['package_send_time']?:$this->timeData['send_time']],//发货时间
  23. 'character_string3'=>['value'=> $this->checkDataLength($this->order['expressmany']->last()['express_sn']?: "",32)],//快递单号
  24. ];
  25. }
  26. }