|
@@ -54,7 +54,7 @@ window.onload = function () {
|
|
|
|
|
|
US.Config = {
|
|
US.Config = {
|
|
server: '//cloud.api.cocorobo.hk/api/',
|
|
server: '//cloud.api.cocorobo.hk/api/',
|
|
- api: '//beta.api.cocorobo.cn/',
|
|
|
|
|
|
+ api: '//cloud.api.cocorobo.hk/',
|
|
chat: "//chat.api.cocorobo.cn/",
|
|
chat: "//chat.api.cocorobo.cn/",
|
|
edu: '//api.edu.cocorobo.cn/edu/',
|
|
edu: '//api.edu.cocorobo.cn/edu/',
|
|
origin: '//cocorobo.cn',
|
|
origin: '//cocorobo.cn',
|
|
@@ -405,7 +405,7 @@ U.MD.D.getuser = function () {
|
|
credentials: 'include'
|
|
credentials: 'include'
|
|
};
|
|
};
|
|
|
|
|
|
- fetch("https://beta.api.cocorobo.cn/api/user", requestOptionsLogin)
|
|
|
|
|
|
+ fetch("https://cloud.api.cocorobo.hk/api/user", requestOptionsLogin)
|
|
.then(response => response.text())
|
|
.then(response => response.text())
|
|
.then(result => {
|
|
.then(result => {
|
|
let a = JSON.parse(result)
|
|
let a = JSON.parse(result)
|
|
@@ -469,7 +469,7 @@ U.MD.D.getuser = function () {
|
|
credentials: 'include'
|
|
credentials: 'include'
|
|
};
|
|
};
|
|
|
|
|
|
- fetch("https://beta.api.cocorobo.cn/api/user", requestOptionsLogin)
|
|
|
|
|
|
+ fetch("https://cloud.api.cocorobo.hk/api/user", requestOptionsLogin)
|
|
.then(response => response.text())
|
|
.then(response => response.text())
|
|
.then(result => {
|
|
.then(result => {
|
|
let a = JSON.parse(result)
|
|
let a = JSON.parse(result)
|
|
@@ -537,7 +537,7 @@ U.MD.D.getuser = function () {
|
|
credentials: 'include'
|
|
credentials: 'include'
|
|
};
|
|
};
|
|
|
|
|
|
- fetch("https://beta.api.cocorobo.cn/api/user", requestOptionsLogin)
|
|
|
|
|
|
+ fetch("https://cloud.api.cocorobo.hk/api/user", requestOptionsLogin)
|
|
.then(response => response.text())
|
|
.then(response => response.text())
|
|
.then(result => {
|
|
.then(result => {
|
|
let a = JSON.parse(result)
|
|
let a = JSON.parse(result)
|
|
@@ -702,7 +702,7 @@ U.MD.D.getuser2 = function (userid, cid) {
|
|
credentials: 'include' // 设置withCredentials为true
|
|
credentials: 'include' // 设置withCredentials为true
|
|
};
|
|
};
|
|
|
|
|
|
- fetch("https://beta.api.cocorobo.cn/api/user", requestOptionsLogin)
|
|
|
|
|
|
+ fetch("https://cloud.api.cocorobo.hk/api/user", requestOptionsLogin)
|
|
.then(response => response.text())
|
|
.then(response => response.text())
|
|
.then(result => {
|
|
.then(result => {
|
|
let a = JSON.parse(result)
|
|
let a = JSON.parse(result)
|