fix(系统设置): 个人信息填写第三方账号信息校验404

--bug=1018837 --user=李玉号 【系统设置】个人信息-第三方账号-填写第三方账号信息-校验报404
https://www.tapd.cn/55049933/s/1276411
This commit is contained in:
shiziyuan9527 2022-10-25 15:48:42 +08:00 committed by lyh
parent d038f7b252
commit 2b7f1e5e6f
4 changed files with 29 additions and 6 deletions

View File

@ -30,7 +30,7 @@ export function updatePassword(data) {
}
export function handleAuth(param) {
return post('issues/user/auth', param)
return post('/personal/relate/issues/user/auth', param);
}
export function getSystemTheme() {

View File

@ -55,7 +55,7 @@ import JiraUserInfo from "./JiraUserInfo";
import AzureDevopsUserInfo from "./AzureDevopsUserInfo";
import {getIntegrationService} from "../../api/workspace";
import {useUserStore} from "@/store";
import {getUserInfo, getWsAndPj} from "../../api/user";
import {handleAuth as _handleAuth,getUserInfo, getWsAndPj} from "../../api/user";
const userStore = useUserStore();
@ -142,9 +142,9 @@ export default {
}
param.workspaceId = getCurrentWorkspaceId();
param.platform = type;
this.$parent.result = this.$post("issues/user/auth", param, () => {
this.$parent.result = _handleAuth(param).then(() => {
this.$success(this.$t('organization.integration.verified'));
});
})
},
getPlatformInfo(row) {
let orgId = getCurrentWorkspaceId();

View File

@ -100,7 +100,7 @@ import {getIntegrationService} from "../../api/workspace";
import ZentaoUserInfo from "./ZentaoUserInfo";
import AzureDevopsUserInfo from "./AzureDevopsUserInfo";
import {useUserStore} from "@/store";
import {handleAuth, updateInfo, updatePassword} from "../../api/user";
import {handleAuth as _handleAuth, updateInfo, updatePassword} from "../../api/user";
const userStore = useUserStore();
@ -302,7 +302,7 @@ export default {
let param = {...this.currentPlatformInfo};
param.workspaceId = getCurrentWorkspaceId();
param.platform = type;
this.$parent.result = handleAuth(param)
this.$parent.result = _handleAuth(param)
.then(() => {
this.$success(this.$t('organization.integration.verified'));
});

View File

@ -0,0 +1,23 @@
package io.metersphere.controller;
import io.metersphere.commons.constants.MicroServiceName;
import io.metersphere.service.MicroService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RestController
@RequestMapping("/personal/relate")
public class BasePersonalRelateController {
@Resource
private MicroService microService;
@PostMapping("/issues/user/auth")
public void userAuth(@RequestBody Object obj) {
microService.postForData(MicroServiceName.TEST_TRACK, "/issues/user/auth", obj);
}
}