diff --git a/src/App.js b/src/App.js index 69ac7a8..934e96f 100644 --- a/src/App.js +++ b/src/App.js @@ -9,6 +9,16 @@ import {load_config,bgimg_style} from './Config'; import ImasuguApp from './imasugu/src/App'; function DeprecatedAlert(props) { + if(document.domain==='hole.xmcp.ml') + return ( +
加载中……
); + else if(this.state.loading_status==='failed') + return (); + else if(this.state.loading_status==='done') + return this.state.msg.map((msg)=>( +{msg.content}+
+ {this.props.show_sidebar(
+ '系统消息',
+
+ 当您发送的内容违规时,我们将用系统消息提示您
+
复制 User Token
User Token 可用于迁移登录状态,请勿泄露,因为它与您的账户唯一对应且泄露后无法重置
@@ -222,7 +231,7 @@ export class ReplyForm extends Component {
},
body: data,
})
- .then((res)=>res.json())
+ .then(get_json)
.then((json)=>{
if(json.code!==0) {
if(json.msg) alert(json.msg);
@@ -248,7 +257,7 @@ export class ReplyForm extends Component {
render() {
return (