Skip to content

Commit bc31550

Browse files
Zhao-githubgitee-org
authored andcommitted
modified 修复删除接口的BUG
1 parent be22ae6 commit bc31550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controller/admin/InterfaceList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ public function del(): Response {
150150
$rule->app_api = implode(',', $appApiArr);
151151

152152
$appApiShowArrOld = json_decode($rule->app_api_show, true);
153-
$appApiShowArr = $appApiShowArrOld[$oldInfo->groupHash];
153+
$appApiShowArr = $appApiShowArrOld[$oldInfo->group_hash];
154154
$appApiShowIndex = array_search($hash, $appApiShowArr);
155155
array_splice($appApiShowArr, $appApiShowIndex, 1);
156-
$appApiShowArrOld[$oldInfo->groupHash] = $appApiShowArr;
156+
$appApiShowArrOld[$oldInfo->group_hash] = $appApiShowArr;
157157
$rule->app_api_show = json_encode($appApiShowArrOld);
158158

159159
$rule->save();

0 commit comments

Comments
 (0)