WeChatCallbackCateTrait.php 829 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace addons\WechatVideoShop\common\logic\traits;
  3. use addons\WechatVideoShop\common\enums\WechatVideoShopCateAuditStatusEnums;
  4. use addons\WechatVideoShop\common\service\CateService;
  5. trait WeChatCallbackCateTrait
  6. {
  7. /**
  8. * [
  9. * 'ToUserName' => 'gh_54b602890f7c'
  10. * 'FromUserName' => 'orkX54g5UfZdHIeNrbYK8OAp6uJ4'
  11. * 'CreateTime' => 1686913689
  12. * 'MsgType' => 'event'
  13. * 'Event' => 'product_category_audit'
  14. * 'ProductCategoryAudit' => [
  15. * 'audit_id' => 4477258124
  16. * 'status' => 3
  17. * ]
  18. * 'wechat_appid' => 'wx79f550219d78c487'
  19. * ]
  20. * 类目审核
  21. * @return void
  22. * @throws \Exception
  23. */
  24. public function product_category_audit(array $params)
  25. {
  26. $this->init($params);
  27. (new CateService())->auditResult($this->data);
  28. }
  29. }