mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进Route类
This commit is contained in:
@@ -645,7 +645,7 @@ class Route
|
||||
$key = array_shift($route);
|
||||
}
|
||||
|
||||
$key = $rule . ($key ? '/' . $key : '');
|
||||
$key = $rule . ($key ? '/' . ltrim($key, '/') : '');
|
||||
// 检查规则路由
|
||||
if (is_array($route)) {
|
||||
$option1 = $route[1];
|
||||
|
||||
@@ -166,11 +166,6 @@ class routeTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals(['type' => 'method', 'method' => ['\app\index\controller\blog', 'read'], 'params' => []], Route::check($request, 'read'));
|
||||
}
|
||||
|
||||
public function testSsl()
|
||||
{
|
||||
$this->assertEquals(false, Route::isSsl());
|
||||
}
|
||||
|
||||
public function testDomain()
|
||||
{
|
||||
$_SERVER['HTTP_HOST'] = 'subdomain.thinkphp.cn';
|
||||
|
||||
Reference in New Issue
Block a user