实名认证检查更新

在实名认证检查中,条件判断从使用`isAuthenticated`改为使用`desc`。这与更新的认证响应格式保持一致。
master
wxy 2024-08-31 01:13:14 +08:00
parent a704fa4bb1
commit 51cc9087ca
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ export default {
async navigateToRecharge() { async navigateToRecharge() {
try { try {
const response = await checkRealNameAuth(this.authForm); const response = await checkRealNameAuth(this.authForm);
if (response.data && response.data.isAuthenticated) { if (response.data && response.data.desc) {
// //
this.$router.push('/money/zfb'); this.$router.push('/money/zfb');
} else { } else {
@ -130,7 +130,7 @@ export default {
try { try {
const {name, idCard} = this.authForm; const {name, idCard} = this.authForm;
const authResponse = await checkRealNameAuth(this.authForm); const authResponse = await checkRealNameAuth(this.authForm);
if (authResponse.code == 200) { if (authResponse.data && authResponse.data.desc) {
this.$message.success('实名认证成功'); this.$message.success('实名认证成功');
this.dialogVisible = false; this.dialogVisible = false;
this.$router.push('/money/zfb'); this.$router.push('/money/zfb');