hhxsv5 / laravel-s

LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.
MIT License
3.82k stars 471 forks source link

tcp socket onConnect 里面能使用数据库模型,onReceive 不能使用,啥原因 #457

Closed myatease closed 8 months ago

myatease commented 8 months ago
  1. Your software version (Screenshot of your startup)

    Software Version
    PHP 8.2
    Swoole 5.0
    Laravel/Lumen 10.0
  2. Detail description about this issue(error/log)

image

  1. Some reproducible code blocks and steps

    ![image](https://github.com/hhxsv5/laravel-s/assets/28795328/e021a68b-613d-4521-abdc-7ba528c31305)
myatease commented 8 months ago

tcp socket onConnect 里面能使用数据库模型,onReceive 里面模型为空。不能使用,啥原因