|
|
|
@ -173,7 +173,7 @@ class TestingResourceController extends BaseController
|
|
|
|
|
$testingResourceService = new TestingResourceService();
|
|
|
|
|
$testingResourceService->apply($params, $loginPromote);
|
|
|
|
|
return $this->ajaxReturn(['status' => 1, 'message' => '申请成功,等待审核。']);
|
|
|
|
|
} catch (\Throwable $e) {
|
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
return $this->ajaxReturn(['status' => 0, 'message' => $e->getMessage()]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -186,7 +186,7 @@ class TestingResourceController extends BaseController
|
|
|
|
|
$testingResourceService = new TestingResourceService();
|
|
|
|
|
$testingResourceService->bindRole($params, $loginPromote);
|
|
|
|
|
return $this->ajaxReturn(['status' => 1, 'message' => '绑定成功']);
|
|
|
|
|
} catch (\Throwable $th) {
|
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
return $this->ajaxReturn(['status' => 0, 'message' => $e->getMessage()]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|