update api port

This commit is contained in:
xmcp
2019-02-16 20:02:05 +08:00
parent 0a899f6693
commit 87f24e3085
5 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
/.idea/
node_modules/
/build/
build.*

View File

@@ -1,3 +1,3 @@
/api_proxy/* http://www.pkuhelper.com/services/pkuhole/:splat 200
/audio_proxy/* http://www.pkuhelper.com/services/pkuhole/audios/:splat 200
/login_proxy/* http://www.pkuhelper.com/services/login/:splat 200
/api_proxy/* http://www.pkuhelper.com:10301/services/pkuhole/:splat 200
/audio_proxy/* http://www.pkuhelper.com:10301/services/pkuhole/audios/:splat 200
/login_proxy/* http://www.pkuhelper.com:10301/services/login/:splat 200

View File

@@ -9,7 +9,7 @@ import './Common.css';
const chinese_format=buildFormatter(chineseStrings);
export const API_BASE=window.location.protocol==='https:' ? '/api_proxy' : 'http://www.pkuhelper.com/services/pkuhole';
export const API_BASE=window.location.protocol==='https:' ? '/api_proxy' : 'http://www.pkuhelper.com:10301/services/pkuhole';
const PID_RE=/(^|[^\d])([1-9]\d{4,5})(?!\d)/g;
const NICKNAME_RE=/(^|[^A-Za-z])((?:(?:Angry|Baby|Crazy|Diligent|Excited|Fat|Greedy|Hungry|Interesting|Japanese|Kind|Little|Magic|Naïve|Old|Powerful|Quiet|Rich|Superman|THU|Undefined|Valuable|Wifeless|Xiangbuchulai|Young|Zombie)\s)?(?:Alice|Bob|Carol|Dave|Eve|Francis|Grace|Hans|Isabella|Jason|Kate|Louis|Margaret|Nathan|Olivia|Paul|Queen|Richard|Susan|Thomas|Uma|Vivian|Winnie|Xander|Yasmine|Zach)|You Win(?: \d+)?|洞主)(?![A-Za-z])/gi;

View File

@@ -9,7 +9,7 @@ import {TokenCtx, ReplyForm} from './UserAction';
import {API} from './flows_api';
const IMAGE_BASE='http://www.pkuhelper.com/services/pkuhole/images/';
const IMAGE_BASE='http://www.pkuhelper.com:10301/services/pkuhole/images/';
const AUDIO_BASE='/audio_proxy/';
const SEARCH_PAGESIZE=50;

View File

@@ -5,7 +5,7 @@ import md5 from 'md5';
import './UserAction.css';
import {API_BASE} from './Common';
const LOGIN_BASE=window.location.protocol==='https:' ? '/login_proxy' : 'http://www.pkuhelper.com/services/login';
const LOGIN_BASE=window.location.protocol==='https:' ? '/login_proxy' : 'http://www.pkuhelper.com:10301/services/login';
const MAX_IMG_PX=2000;
const MAX_IMG_FILESIZE=256000;