Kaynağa Gözat

serverURL本地地址修改为https

Breeze 4 ay önce
ebeveyn
işleme
8bb88372c9

+ 1 - 1
serve/fmode-pares.js

@@ -1,7 +1,7 @@
 class ParseObject{
     className
     id
-    serverURL = "http://web2023.fmode.cn:9999/parse"
+    serverURL = "https://web2023.fmode.cn/parse"
     data = {}
     toJSON(){
         return this.data

+ 5 - 5
serve/rest.js

@@ -1,7 +1,7 @@
 
 // Pet GET 获取全部宠物
 async function getPet(){
-    let response = await fetch("http://web2023.fmode.cn:9999/parse/classes/Pet?", {
+    let response = await fetch("https://web2023.fmode.cn/parse/classes/Pet?", {
       "headers": {
         "accept": "*/*",
         "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
@@ -39,7 +39,7 @@ async function getPet(){
   
   // 通过函数封装,实现多个表的查询
   async function ClassesGet(className){
-    let response = await fetch("http://web2023.fmode.cn:9999/parse/classes/"+className, {
+    let response = await fetch("https://web2023.fmode.cn/parse/classes/"+className, {
       "headers": {
         "accept": "*/*",
         "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
@@ -65,7 +65,7 @@ async function getPet(){
   }
   
   // // Pet POST 创建宠物
-  // fetch("http://web2023.fmode.cn:9999/parse/classes/Pet", {
+  // fetch("https://web2023.fmode.cn/parse/classes/Pet", {
   //   "headers": {
   //     "accept": "*/*",
   //     "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
@@ -81,7 +81,7 @@ async function getPet(){
   // });
   
   // // Pet PUT 修改
-  // fetch("http://web2023.fmode.cn:9999/parse/classes/Pet/bl34OtuBYm", {
+  // fetch("https://web2023.fmode.cn/parse/classes/Pet/bl34OtuBYm", {
   //   "headers": {
   //     "accept": "*/*",
   //     "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
@@ -97,7 +97,7 @@ async function getPet(){
   // });
   
   // // Pet DELETE 删除
-  // fetch("http://web2023.fmode.cn:9999/parse/classes/Pet/bl34OtuBYm", {
+  // fetch("https://web2023.fmode.cn/parse/classes/Pet/bl34OtuBYm", {
   //   "headers": {
   //     "accept": "*/*",
   //     "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",

+ 1 - 1
src/app/app.component.ts

@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
 // 引用Parse JS SDK
 import Parse from "parse";
 Parse.initialize("dev"); // 设置applicationId
-Parse.serverURL = "http://web2023.fmode.cn:9999/parse"; // 设置serverURL
+Parse.serverURL = "https://web2023.fmode.cn/parse"; // 设置serverURL
 //
 
 @Component({

+ 1 - 1
src/app/place/place.page.html

@@ -171,7 +171,7 @@
       </ion-list>
       <ion-row>
         <ion-col size="12">
-          <ion-button expand="full" color="light" shape="round" (click)="goToMorePlace">more ></ion-button>
+          <ion-button expand="full" color="light" shape="round" (click)="goToMorePlace()">more ></ion-button>
         </ion-col>
       </ion-row>
     </ion-card-content>

+ 1 - 1
src/app/services/parse.service.ts

@@ -12,7 +12,7 @@ export class ParseService {
 
   private initializeParse() {
     Parse.initialize('dev');
-    Parse.serverURL = 'http://web2023.fmode.cn:9999/parse';
+    Parse.serverURL = 'https://web2023.fmode.cn/parse';
   }
 
   public async queryMovies(): Promise<any[]> {

+ 1 - 1
src/environments/environment.ts

@@ -9,7 +9,7 @@
 export const environment = {
   production: false,
   parseAppId: 'dev',
-  parseServerUrl: 'http://web2023.fmode.cn:9999/parse'
+  parseServerUrl: 'https://web2023.fmode.cn/parse'
  };
 
 /*

+ 4 - 4
src/main.ts

@@ -2,13 +2,13 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
 
 import { AppModule } from './app/app.module';
 
-import { environment } from './environments/environment';
-import  Parse  from 'parse';
+// import { environment } from './environments/environment';
+// import  Parse  from 'parse';
 
 platformBrowserDynamic().bootstrapModule(AppModule)
   .catch(err => console.log(err));
 
 
 
-  Parse.initialize(environment.parseAppId);
-  Parse.serverURL = environment.parseServerUrl;
+  // Parse.initialize(environment.parseAppId);
+  // Parse.serverURL = environment.parseServerUrl;

+ 1 - 1
src/modules/user/README.md

@@ -47,7 +47,7 @@ npm i -D @types/parse
 // 引用Parse JS SDK
 import Parse from "parse";
 Parse.initialize("dev"); // 设置applicationId
-Parse.serverURL = "http://web2023.fmode.cn:9999/parse"; // 设置serverURL
+Parse.serverURL = "https://web2023.fmode.cn/parse"; // 设置serverURL
 ```
 
 # 复制user整个模块目录