OutChildSend.php 409 B

1234567891011121314151617181920
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\admin\listener;
  4. use app\admin\model\OrderOutChild;
  5. use app\model\FhdChild;
  6. class OutChildSend
  7. {
  8. /**
  9. * 事件监听处理
  10. *
  11. * @return mixed
  12. */
  13. public function handle($event)
  14. {
  15. $child = OrderOutChild::whereIn("outChildCode",$event)->hidden(["id"])->select()->toArray();
  16. (new FhdChild())->SaveAll($child);
  17. }
  18. }