| 
														
															@@ -16,7 +16,7 @@ export class CloudObject { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     set(json: Record<string, any>) { 
														 | 
														
														 | 
														
															     set(json: Record<string, any>) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         Object.keys(json).forEach(key => { 
														 | 
														
														 | 
														
															         Object.keys(json).forEach(key => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            if (["objectId", "id", "createdAt", "updatedAt", "ACL"].indexOf(key) > -1) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (["objectId", "id", "createdAt", "updatedAt"].indexOf(key) > -1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 return; 
														 | 
														
														 | 
														
															                 return; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             this.data[key] = json[key]; 
														 | 
														
														 | 
														
															             this.data[key] = json[key]; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -29,7 +29,7 @@ export class CloudObject { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     async save() { 
														 | 
														
														 | 
														
															     async save() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         let method = "POST"; 
														 | 
														
														 | 
														
															         let method = "POST"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        let url = `http://dev.fmode.cn:1337/parse/classes/${this.className}`; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        let url = `https://dev.fmode.cn/parse/classes/${this.className}`; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // 更新 
														 | 
														
														 | 
														
															         // 更新 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (this.id) { 
														 | 
														
														 | 
														
															         if (this.id) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -61,7 +61,7 @@ export class CloudObject { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     async destroy() { 
														 | 
														
														 | 
														
															     async destroy() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (!this.id) return; 
														 | 
														
														 | 
														
															         if (!this.id) return; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        const response = await fetch(`http://dev.fmode.cn:1337/parse/classes/${this.className}/${this.id}`, { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        const response = await fetch(`https://dev.fmode.cn/parse/classes/${this.className}/${this.id}`, { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             headers: { 
														 | 
														
														 | 
														
															             headers: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 "x-parse-application-id": "dev" 
														 | 
														
														 | 
														
															                 "x-parse-application-id": "dev" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }, 
														 | 
														
														 | 
														
															             }, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -87,7 +87,7 @@ export class CloudQuery { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     constructor(className: string) { 
														 | 
														
														 | 
														
															     constructor(className: string) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.className = className; 
														 | 
														
														 | 
														
															         this.className = className; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    // 作用是将查询参数转换为对象 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     include(...fileds:string[]) { 
														 | 
														
														 | 
														
															     include(...fileds:string[]) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.queryParams["include"] = fileds; 
														 | 
														
														 | 
														
															         this.queryParams["include"] = fileds; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -112,11 +112,12 @@ export class CloudQuery { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     equalTo(key: string, value: any) { 
														 | 
														
														 | 
														
															     equalTo(key: string, value: any) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        if (!this.queryParams["where"]) this.queryParams["where"] = {}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.queryParams["where"][key] = value; 
														 | 
														
														 | 
														
															         this.queryParams["where"][key] = value; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     async get(id: string) { 
														 | 
														
														 | 
														
															     async get(id: string) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        const url = `http://dev.fmode.cn:1337/parse/classes/${this.className}/${id}?`; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        const url = `https://dev.fmode.cn/parse/classes/${this.className}/${id}?`; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         const response = await fetch(url, { 
														 | 
														
														 | 
														
															         const response = await fetch(url, { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             headers: { 
														 | 
														
														 | 
														
															             headers: { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -130,35 +131,31 @@ export class CloudQuery { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }); 
														 | 
														
														 | 
														
															         }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         const json = await response?.json(); 
														 | 
														
														 | 
														
															         const json = await response?.json(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        // return json || {}; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        const exists = json?.results?.[0] || null; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        if (exists) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            let existsObject = this.dataToObj(exists) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        if (json) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            let existsObject = this.dataToObj(json) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return existsObject; 
														 | 
														
														 | 
														
															             return existsObject; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return null 
														 | 
														
														 | 
														
															         return null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    async find() { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        let url = `http://dev.fmode.cn:1337/parse/classes/${this.className}?`; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    async find():Promise<Array<CloudObject>> { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        let url = `https://dev.fmode.cn/parse/classes/${this.className}?`; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         let queryStr = `` 
														 | 
														
														 | 
														
															         let queryStr = `` 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         Object.keys(this.queryParams).forEach(key=>{ 
														 | 
														
														 | 
														
															         Object.keys(this.queryParams).forEach(key=>{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            let paramStr = JSON.stringify(this.queryParams[key]); // 作用是将对象转换为JSON字符串 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            let paramStr = JSON.stringify(this.queryParams[key]); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if(key=="include"){ 
														 | 
														
														 | 
														
															             if(key=="include"){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 paramStr = this.queryParams[key]?.join(",") 
														 | 
														
														 | 
														
															                 paramStr = this.queryParams[key]?.join(",") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            if(key=="where"){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                paramStr = JSON.stringify(this.queryParams[key]); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if(queryStr) { 
														 | 
														
														 | 
														
															             if(queryStr) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 url += `${key}=${paramStr}`; 
														 | 
														
														 | 
														
															                 url += `${key}=${paramStr}`; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }else{ 
														 | 
														
														 | 
														
															             }else{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 url += `&${key}=${paramStr}`; 
														 | 
														
														 | 
														
															                 url += `&${key}=${paramStr}`; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }) 
														 | 
														
														 | 
														
															         }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        // if (Object.keys(this.queryParams["where"]).length) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+             
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        // } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         const response = await fetch(url, { 
														 | 
														
														 | 
														
															         const response = await fetch(url, { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             headers: { 
														 | 
														
														 | 
														
															             headers: { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -179,7 +176,7 @@ export class CloudQuery { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     async first() { 
														 | 
														
														 | 
														
															     async first() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        let url = `http://dev.fmode.cn:1337/parse/classes/${this.className}?`; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        let url = `https://dev.fmode.cn/parse/classes/${this.className}?`; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (Object.keys(this.queryParams["where"]).length) { 
														 | 
														
														 | 
														
															         if (Object.keys(this.queryParams["where"]).length) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             const whereStr = JSON.stringify(this.queryParams["where"]); 
														 | 
														
														 | 
														
															             const whereStr = JSON.stringify(this.queryParams["where"]); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -198,15 +195,12 @@ export class CloudQuery { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }); 
														 | 
														
														 | 
														
															         }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         const json = await response?.json(); 
														 | 
														
														 | 
														
															         const json = await response?.json(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        // const exists = json?.results?.[0] || null; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        // if (exists) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        //     let existsObject = this.dataToObj(exists) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        //     return existsObject; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        // } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        // return null 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        let list = json?.results || [] 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        let objList = list.map((item:any)=>this.dataToObj(item)) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        return objList || []; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        const exists = json?.results?.[0] || null; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        if (exists) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            let existsObject = this.dataToObj(exists) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            return existsObject; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        return null 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     dataToObj(exists:any):CloudObject{ 
														 | 
														
														 | 
														
															     dataToObj(exists:any):CloudObject{ 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -242,7 +236,7 @@ export class CloudUser extends CloudObject { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return null; 
														 | 
														
														 | 
														
															             return null; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return this; 
														 | 
														
														 | 
														
															         return this; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        // const response = await fetch(`http://dev.fmode.cn:1337/parse/users/me`, { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        // const response = await fetch(`https://dev.fmode.cn/parse/users/me`, { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         //     headers: { 
														 | 
														
														 | 
														
															         //     headers: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         //         "x-parse-application-id": "dev", 
														 | 
														
														 | 
														
															         //         "x-parse-application-id": "dev", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         //         "x-parse-session-token": this.sessionToken // 使用sessionToken进行身份验证 
														 | 
														
														 | 
														
															         //         "x-parse-session-token": this.sessionToken // 使用sessionToken进行身份验证 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -260,7 +254,7 @@ export class CloudUser extends CloudObject { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     /** 登录 */ 
														 | 
														
														 | 
														
															     /** 登录 */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     async login(username: string, password: string):Promise<CloudUser|null> { 
														 | 
														
														 | 
														
															     async login(username: string, password: string):Promise<CloudUser|null> { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        const response = await fetch(`http://dev.fmode.cn:1337/parse/login`, { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        const response = await fetch(`https://dev.fmode.cn/parse/login`, { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             headers: { 
														 | 
														
														 | 
														
															             headers: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 "x-parse-application-id": "dev", 
														 | 
														
														 | 
														
															                 "x-parse-application-id": "dev", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 "Content-Type": "application/json" 
														 | 
														
														 | 
														
															                 "Content-Type": "application/json" 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -292,7 +286,7 @@ export class CloudUser extends CloudObject { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return; 
														 | 
														
														 | 
														
															             return; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        const response = await fetch(`http://dev.fmode.cn:1337/parse/logout`, { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        const response = await fetch(`https://dev.fmode.cn/parse/logout`, { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             headers: { 
														 | 
														
														 | 
														
															             headers: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 "x-parse-application-id": "dev", 
														 | 
														
														 | 
														
															                 "x-parse-application-id": "dev", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 "x-parse-session-token": this.sessionToken 
														 | 
														
														 | 
														
															                 "x-parse-session-token": this.sessionToken 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -322,7 +316,7 @@ export class CloudUser extends CloudObject { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             ...additionalData // 合并额外的用户数据 
														 | 
														
														 | 
														
															             ...additionalData // 合并额外的用户数据 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }; 
														 | 
														
														 | 
														
															         }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        const response = await fetch(`http://dev.fmode.cn:1337/parse/users`, { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        const response = await fetch(`https://dev.fmode.cn/parse/users`, { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             headers: { 
														 | 
														
														 | 
														
															             headers: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 "x-parse-application-id": "dev", 
														 | 
														
														 | 
														
															                 "x-parse-application-id": "dev", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 "Content-Type": "application/json" 
														 | 
														
														 | 
														
															                 "Content-Type": "application/json" 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -349,7 +343,7 @@ export class CloudUser extends CloudObject { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     override async save() { 
														 | 
														
														 | 
														
															     override async save() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         let method = "POST"; 
														 | 
														
														 | 
														
															         let method = "POST"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        let url = `http://dev.fmode.cn:1337/parse/users`; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        let url = `https://dev.fmode.cn/parse/users`; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      
														 | 
														
														 | 
														
															      
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // 更新用户信息 
														 | 
														
														 | 
														
															         // 更新用户信息 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (this.id) { 
														 | 
														
														 | 
														
															         if (this.id) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -386,4 +380,33 @@ export class CloudUser extends CloudObject { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         localStorage.setItem("NCloud/dev/User",JSON.stringify(this.data)) 
														 | 
														
														 | 
														
															         localStorage.setItem("NCloud/dev/User",JSON.stringify(this.data)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return this; 
														 | 
														
														 | 
														
															         return this; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+export class CloudApi{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    async fetch(path:string,body:any,options?:{ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        method:string 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        body:any 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    }){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        let reqOpts:any =  { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            headers: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                "x-parse-application-id": "dev", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                "Content-Type": "application/json" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            method: options?.method || "POST", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            mode: "cors", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            credentials: "omit" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        if(body||options?.body){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            reqOpts.body = JSON.stringify(body || options?.body); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            reqOpts.json = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        let host = `https://dev.fmode.cn` 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        // host = `http://127.0.0.1:1337` 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        let url = `${host}/api/`+path 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        console.log(url,reqOpts) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        const response = await fetch(url,reqOpts); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        let json = await response.json(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        return json 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 |