mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified BUG修复
This commit is contained in:
parent
b54c0b002a
commit
8bfa904a9f
@ -192,7 +192,7 @@ class InterfaceList extends Base {
|
|||||||
array_push($tplStr, 'Route::rule(\'' . addslashes($value->hash) . '\',\'api.' . addslashes($value->api_class) . '\', \'' . $methodArr[$value->method] . '\')->middleware([app\middleware\ApiAuth::class, app\middleware\ApiPermission::class, app\middleware\RequestFilter::class, app\middleware\ApiLog::class]);');
|
array_push($tplStr, 'Route::rule(\'' . addslashes($value->hash) . '\',\'api.' . addslashes($value->api_class) . '\', \'' . $methodArr[$value->method] . '\')->middleware([app\middleware\ApiAuth::class, app\middleware\ApiPermission::class, app\middleware\RequestFilter::class, app\middleware\ApiLog::class]);');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$tplOriginStr = str_replace(['{$API_RULE}'], [implode($tplStr, PHP_EOL . ' ')], $tplOriginStr);
|
$tplOriginStr = str_replace(['{$API_RULE}'], [implode(PHP_EOL . ' ', $tplStr)], $tplOriginStr);
|
||||||
|
|
||||||
file_put_contents($apiRoutePath, $tplOriginStr);
|
file_put_contents($apiRoutePath, $tplOriginStr);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user