|
|
@@ -128,9 +128,10 @@ const userInfo = (data) => {
|
|
|
if (data.telephoneNumber) {
|
|
|
top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/batchRegistrationSzdjg3", [data.userName, data.telephoneNumber + '@szdjg.com', '16ace517-b5c7-4168-a9bb-a9e0035df840', data.schoolName || "", data.telephoneNumber, userGrand, userIdentity, data.userId, diqu, data.eduId], function (r) {
|
|
|
// console.log('rrrrr', r)
|
|
|
- let url = window.location.href.includes(".hk")
|
|
|
+ console.log('lang.lang', lang.lang);
|
|
|
+ let url = lang.lang == 'hk'
|
|
|
? "https://cloud.api.cocorobo.hk/api/user"
|
|
|
- : window.location.href.includes(".com")
|
|
|
+ : lang.lang == 'en'
|
|
|
? "https://cloud.api.cocorobo.com/api/user"
|
|
|
: "https://beta.api.cocorobo.cn/api/user";
|
|
|
|
|
|
@@ -183,9 +184,10 @@ const userInfo2 = (data) => {
|
|
|
let diqu = `${data.last_top_org_name}&${data.init_v_platform_code}`
|
|
|
top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/batchRegistrationSzdjg3", [data.name, data.user_id + '@szdjg.com', '16ace517-b5c7-4168-a9bb-a9e0035df840', data.last_top_org_name || "", data.phone, userGrand, userIdentity, data.user_id, diqu, data.user_id], function (r) {
|
|
|
// console.log('rrrrr', r)
|
|
|
- let url = window.location.href.includes(".hk")
|
|
|
+ console.log('lang.lang2', lang.lang);
|
|
|
+ let url = lang.lang == 'hk'
|
|
|
? "https://cloud.api.cocorobo.hk/api/user"
|
|
|
- : window.location.href.includes(".com")
|
|
|
+ : lang.lang == 'en'
|
|
|
? "https://cloud.api.cocorobo.com/api/user"
|
|
|
: "https://beta.api.cocorobo.cn/api/user";
|
|
|
axios.post(url, qs.stringify(params)).then(async d => {
|