Skip to content

Commit b294e8c

Browse files
committed
修正生成所有缓存异常问题
1 parent 9a16382 commit b294e8c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Controller.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,7 @@ public function createAllCache(){
227227
if (!empty($controller['children']) && count($controller['children'])){
228228
foreach ($controller['children'] as $item) {
229229
if (!empty($item['url']) && !empty($item['menuKey'])){
230-
$pathArr = explode("@", urldecode($item['menuKey']));
231-
$classPath = $pathArr[0];
232-
$method = $pathArr[1];
233-
$apiDetail = (new ParseApiDetail($config))->renderApiDetail($appKey,$classPath,$method);
230+
$apiDetail = (new ParseApiDetail($config))->renderApiDetail($appKey,urldecode($item['menuKey']));
234231
$apiDetailCacheKey = Helper::getCacheKey('apiDetail',$appKey,$this->lang,$item['menuKey']);
235232
$cache->set($apiDetailCacheKey,$apiDetail);
236233
}

0 commit comments

Comments
 (0)