diff --git a/Application/Admin/Controller/TestingResourceController.class.php b/Application/Admin/Controller/TestingResourceController.class.php index 2ea0652f2..b2f28a187 100644 --- a/Application/Admin/Controller/TestingResourceController.class.php +++ b/Application/Admin/Controller/TestingResourceController.class.php @@ -390,7 +390,7 @@ class TestingResourceController extends ThinkController $testingResourceService = new TestingResourceService(); $testingResourceService->bindRole($params); return $this->ajaxReturn(['status' => 1, 'message' => '绑定成功']); - } catch (\Throwable $th) { + } catch (\Throwable $e) { return $this->ajaxReturn(['status' => 0, 'message' => $e->getMessage()]); } } @@ -402,7 +402,7 @@ class TestingResourceController extends ThinkController $testingResourceService = new TestingResourceService(); $testingResourceService->unbindRole($bindingId); return $this->ajaxReturn(['status' => 1, 'message' => '解绑成功']); - } catch (\Throwable $th) { + } catch (\Throwable $e) { return $this->ajaxReturn(['status' => 0, 'message' => $e->getMessage()]); } }