From 23fa268f56dcd99c8dcd46f50f3ffcaa4cdcbc49 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期五, 10 十月 2025 17:25:53 +0800
Subject: [PATCH] 功能完善

---
 entry/src/main/ets/pages/login/SignInPage.ets |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/entry/src/main/ets/pages/login/SignInPage.ets b/entry/src/main/ets/pages/login/SignInPage.ets
index 011d93c..cb0235a 100644
--- a/entry/src/main/ets/pages/login/SignInPage.ets
+++ b/entry/src/main/ets/pages/login/SignInPage.ets
@@ -3,6 +3,7 @@
 import { HttpResponseResult } from '../../data/HttpResponse';
 import { ComponentContent } from '@kit.ArkUI';
 import { PromptActionClass } from '../../utils/PromptActionClass';
+import { ROMAIN } from '../../utils/config';
 
 class DialogParams {
   text: string = "";
@@ -90,7 +91,7 @@
     }
 
     httpRequest.request(
-      "http://192.168.20.70:8080/quiz-community/public/v1.0/users/register",
+      `${ROMAIN}/quiz-community/public/v1.0/users/register`,
       {
         method: http.RequestMethod.POST,
         header: { 'Content-Type': 'application/json' },
@@ -106,8 +107,6 @@
           } else {
             promptAction.showToast({ message: resData.msg })
           }
-        } else {
-          promptAction.showToast({ message: err.message })
         }
       }
     )

--
Gitblit v1.8.0