Skip to content

Commit 2468dc2

Browse files
committed
rules的键不能写rul
1 parent 9e09862 commit 2468dc2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/core/ApiDesc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public function render($tplPath = NULL) {
7474
$apiUrl = trim($baseUrl, '/') . '/' . trim($rules['url'], '/');
7575
unset($rules['url']);
7676
}
77-
else if(!is_int($action)){
78-
$apiUrl = trim($baseUrl, '/') . '/' . trim($action, '/');
79-
}
77+
// else if(!is_int($action)){
78+
// $apiUrl = trim($baseUrl, '/') . '/' . trim($action, '/');
79+
// }
8080
if (isset($rules['return'])) {
8181
$returns = $rules['return'];
8282
unset($rules['return']);

src/core/ApiList.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ public function render($tplPath = NULL) {
101101
if(isset($mValue['url'])){
102102
$apiUrl = $mValue['url'];
103103
}
104-
else if(!is_int($mkey)){
105-
$apiUrl = $mkey;
106-
}
104+
// else if(!is_int($mkey)){
105+
// $apiUrl = $mkey;
106+
// }
107107
if(isset($mValue['title'])){
108108
$title = $mValue['title'];
109109
}

0 commit comments

Comments
 (0)