11wqe1 3 weeks ago
parent
commit
ad6e084043
2 changed files with 4 additions and 4 deletions
  1. 3 3
      src/App.vue
  2. 1 1
      src/components/dialog/addClassDialog.vue

+ 3 - 3
src/App.vue

@@ -292,7 +292,7 @@ const selectUser = (uid) => {
 
 
     // 拉取用户信息并处理
     // 拉取用户信息并处理
     const requestUser = () => {
     const requestUser = () => {
-        top.U.A.Request(`${top.US.Config.pbl}selectUser?userid=${uid}`, [], function (res) {
+        top.U.A.Request(`${top.US.Config.pbl}selectUser2?userid=${uid}`, [], function (res) {
             if (res && res.value && res.value.length && res.value[0].length && res.value[0][0].userid) {
             if (res && res.value && res.value.length && res.value[0].length && res.value[0][0].userid) {
                 // 拉取成功,存储用户信息
                 // 拉取成功,存储用户信息
                 isShow.value = false;
                 isShow.value = false;
@@ -334,7 +334,7 @@ const selectUser2 = (uid) => {
 
 
     // 拉取用户信息并处理
     // 拉取用户信息并处理
     const requestUser = () => {
     const requestUser = () => {
-      axios.get(`https://pbl.cocorobo.cn/api/pbl/selectUser?userid=${uid}`, { withCredentials: true })
+      axios.get(`https://pbl.cocorobo.cn/api/pbl/selectUser2?userid=${uid}`, { withCredentials: true })
         .then(res => {
         .then(res => {
           console.log(res);
           console.log(res);
           if (res && res.data && res.data.length && res.data[0].length && res.data[0][0].userid) {
           if (res && res.data && res.data.length && res.data[0].length && res.data[0][0].userid) {
@@ -362,7 +362,7 @@ const selectUser3 = async (uid) => {
     // 拉取用户信息并处理
     // 拉取用户信息并处理
     const requestUser = async () => {
     const requestUser = async () => {
         try {
         try {
-            const res = await axios.get(`https://pbl.cocorobo.cn/api/pbl/selectUser?userid=${uid}`, { withCredentials: true });
+            const res = await axios.get(`https://pbl.cocorobo.cn/api/pbl/selectUser2?userid=${uid}`, { withCredentials: true });
             console.log(res);
             console.log(res);
             if (res && res.data && res.data.length && res.data[0].length && res.data[0][0].userid) {
             if (res && res.data && res.data.length && res.data[0].length && res.data[0][0].userid) {
                 // 拉取成功,存储用户信息
                 // 拉取成功,存储用户信息

+ 1 - 1
src/components/dialog/addClassDialog.vue

@@ -218,7 +218,7 @@
       if (!userInfo.user.userid) return
       if (!userInfo.user.userid) return
       try {
       try {
         if(!userInfo.user || !userInfo.user.accountNumber){
         if(!userInfo.user || !userInfo.user.accountNumber){
-          let kk= await axios.get("https://pbl.cocorobo.cn/api/pbl/selectUser?userid="+userInfo.user.userid)
+          let kk= await axios.get("https://pbl.cocorobo.cn/api/pbl/selectUser2?userid="+userInfo.user.userid)
           userInfo.user = kk[0][0]
           userInfo.user = kk[0][0]
         }
         }
       } catch (e) {
       } catch (e) {