修改bug

master
ELF 4 years ago
parent 18c3e95f30
commit 36c4c666ec

@ -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()]);
}
}

Loading…
Cancel
Save