y595705120 2 дней назад
Родитель
Сommit
a39334b8d7
3 измененных файлов с 4 добавлено и 4 удалено
  1. 1 1
      config/index.js
  2. 2 2
      src/components/httpServer/httpServer.js
  3. 1 1
      sync.bat

+ 1 - 1
config/index.js

@@ -4,7 +4,7 @@
 //
 // const TARGET = "http://study.ndjsxh.cn:8888/"
 // const TARGET = "http://localhost:8000/"
-const TARGET = "https://sm.hqedust.com/"
+const TARGET = "https://ndapi.hqedust.com:18443/"
 const path = require('path')
 
 module.exports = {

+ 2 - 2
src/components/httpServer/httpServer.js

@@ -18,7 +18,7 @@ export function httpServer(method, data) {
   let sigureStr = "hall_" + version + token + body + method + mtime + secret
 
   let sign = md5( sigureStr )
-  let url = `https://smapi.hqedust.com:18443/rental/${method}?t=${mtime}&u=${uid}&v=${version}&s=${sign}`
+  let url = `/rental/${method}?t=${mtime}&u=${uid}&v=${version}&s=${sign}`
   return request({
     url: url,
     method: 'post',
@@ -34,7 +34,7 @@ export function uploadImg( rand, formData ) {
   if( !token || !uid ) return;
   let sign = "hall_" + version + token + rand  + mtime + secret;
   return request({
-    url:`https://smapi.hqedust.com:18443/upload?t=${mtime}&u=${uid}&v=${version}&s=${sign}&r=${rand}`,
+    url:`upload?t=${mtime}&u=${uid}&v=${version}&s=${sign}&r=${rand}`,
     method: 'post',
     data:formData,
     dataType:"multipart/form-data"

+ 1 - 1
sync.bat

@@ -1,2 +1,2 @@
-go run build.go -dir=study_sm
+go run build.go -dir=study_nd
 pause