WeChatCallbackRefundTrait.php 793 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace addons\WechatVideoShop\common\logic\traits;
  3. use addons\WechatVideoShop\common\service\RefundCallbackService;
  4. trait WeChatCallbackRefundTrait
  5. {
  6. /**
  7. * {
  8. * "ToUserName": "gh_*",
  9. * "FromUserName": "OpenID",
  10. * "CreateTime": 1662480000,
  11. * "MsgType": "event",
  12. * "Event": "channels_ec_aftersale_update",
  13. * "finder_shop_aftersale_status_update": {
  14. * "status": "USER_WAIT_RETURN",
  15. * "after_sale_order_id": "1234567",
  16. * "order_id":"12345"
  17. * }
  18. * }
  19. * 售后单更新
  20. * @return void
  21. * @throws \Exception
  22. */
  23. public function channels_ec_aftersale_update(array $params)
  24. {
  25. $this->init($params);
  26. (new RefundCallbackService($this->shop_id, $this->mall_id))->update($this->data);
  27. }
  28. }