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