From 911aaf31afd0a48bae53b954a4ca11fa161836a3 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Sat, 23 Mar 2019 12:15:34 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=BF=83=E8=B7=B3=E6=97=B6=E9=97=B4][?= =?UTF-8?q?=E4=BF=AE=E6=94=B9]:[=E4=BF=AE=E6=94=B9=E4=B8=BA10=E7=A7=92]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/App.js b/App.js index 1fdcfe6..89f9f51 100644 --- a/App.js +++ b/App.js @@ -91,7 +91,7 @@ export default class MyPage extends Component { contentItem2:null, animationTheme:{}, heartConfig:{ - heartbeatInterval:1000*5*60, + heartbeatInterval:1000*10, dataRefreshInterval:1000*60*60, pageChangeInterval:1000*10, }, @@ -168,6 +168,7 @@ codePushStatusDidChange(syncStatus) { +encodeURIComponent(this.state.macAddress), {version:this.state.versionInfo}) .then(result => { + let config = JSON.parse(result.data.config); this.setState({ heartConfig:{ @@ -316,10 +317,7 @@ startAd() { this.hbRequest() hbRequestCount = this.state.heartConfig.heartbeatInterval } - }, - 1000 - ); - + },1000) } getContentViewItemUplayer(contentItem) {