Giter Club home page Giter Club logo

domain's People

Contributors

walkor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

domain's Issues

当short_url为true时遇到的问题

你好,当short_url为true时, 如果每个域名下有相同的控制器和方法时, 会报错
配置:
image
报错:
$ php start.php ----------------------- WORKERMAN ----------------------------- Workerman version:4.0.30 PHP version:8.1.0 ------------------------ WORKERS ------------------------------- worker listen processes status webman http://0.0.0.0:8787 2 [ok] FastRoute\BadRouteException: Cannot register two routes matching "/index" for method "GET" in D:\test\vendor\nikic\fast-route\src\DataGenerator\RegexBasedAbstract.php:86 Stack trace: #0 D:\test\vendor\nikic\fast-route\src\DataGenerator\RegexBasedAbstract.php(30): FastRoute\DataGenerator\RegexBasedAbstract->addStaticRoute('GET', Array, Array) #1 D:\test\vendor\nikic\fast-route\src\RouteCollector.php(44): FastRoute\DataGenerator\RegexBasedAbstract->addRoute('GET', Array, Array) #2 D:\test\vendor\workerman\webman-framework\src\Route.php(301): FastRoute\RouteCollector->addRoute(Array, '/index', Array) #3 D:\test\vendor\workerman\webman-framework\src\Route.php(160): Webman\Route::addRoute(Array, '/index', Array) #4 D:\test\config\plugin\webman\domain\route.php(61): Webman\Route::any('/index', Array) #5 D:\test\config\plugin\webman\domain\route.php(77): Webman\Route::{closure}('/index', Array) #6 D:\test\vendor\workerman\webman-framework\src\Route.php(332): require_once('D:\\wamp64\\www\\k...') #7 D:\test\vendor\nikic\fast-route\src\functions.php(25): Webman\Route::Webman\{closure}(Object(Closure)) #8 D:\test\vendor\workerman\webman-framework\src\Route.php(334): FastRoute\simpleDispatcher(Object(Closure)) #9 D:\test\support\bootstrap.php(81): Webman\Route::load('D:\\wamp64\\www\\k...') #10 D:\test\start.php(70): require_once('D:\\wamp64\\www\\k...') #11 D:\test\vendor\workerman\workerman\Worker.php(2418): {closure}(Object(Workerman\Worker)) #12 D:\test\vendor\workerman\workerman\Worker.php(1430): Workerman\Worker->run() #13 D:\test\vendor\workerman\workerman\Worker.php(1373): Workerman\Worker::forkWorkersForWindows() #14 D:\test\vendor\workerman\workerman\Worker.php(549): Workerman\Worker::forkWorkers() #15 D:\test\start.php(90): Workerman\Worker::runAll() #16 {main}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.