Skip to content

Commit

Permalink
modify miniprogram demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreySu committed Jan 21, 2018
1 parent ea5c2a9 commit 08fd314
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ packages/
/src/Senparc.Weixin.MP.BuildOutPut/Senparc.Weixin.Work.1.0.0.nupkg
/src/Senparc.Weixin.MP.Sample.vs2017/Senparc.Weixin.MP.CoreSample/App_Data/Document/Files
/Samples/Senparc.Weixin.MP.Sample/UpgradeLog2.htm
/src/Senparc.Weixin.WxOpen/src/Senparc.Weixin.WxOpen.AppDemo/project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ App({
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)

var isDebug = false;
var isDebug = false;//调试状态使用本地服务器,非调试状态使用远程服务器
if(!isDebug){
//远程域名
wx.setStorageSync('domainName', "https://sdk.weixin.senparc.com")
Expand All @@ -18,6 +18,11 @@ App({
wx.setStorageSync('domainName', "http://localhost:8080")
wx.setStorageSync('wssDomainName', "ws://localhost:8080")
}

// 打开调试
// wx.setEnableDebug({
// enableDebug: true
// })
},
getUserInfo:function(cb){
var that = this
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"navigationBarTitleText": "查看启动日志",
"navigationBarBackgroundColor":"#000000"
"navigationBarBackgroundColor":"#ffffff"
}

0 comments on commit 08fd314

Please sign in to comment.