Skip to content

Commit

Permalink
for ios review
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdurrent committed Mar 24, 2020
1 parent 6387a89 commit 4d38daf
Show file tree
Hide file tree
Showing 8 changed files with 122 additions and 13 deletions.
45 changes: 45 additions & 0 deletions docs/android.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"zh": {
"docs": {
"version": "1.1.6",
"url": "https://sero-media-1256272584.cos.ap-shanghai.myqcloud.com/popup/wgt/1.1.6/cash.sero.popup.community.wgt",
"show": false,
"description": [
"1. 优化了钱包页面打不开的问题",
"2. 增加了钱包热更新的功能",
"3. 优化了同步区块数据的核心代码",
"4. 优化了同步过程的状态提示",
"5. 在钱包管理界面,增加了修复数据的功能,可对单个账户修复数据",
"6. 删除了开源社区的选择功能",
"7. 优化了助记词导入的功能,自动格式化助记词(去空格和去回车符)。",
"8. 显示了当前账号同步的最新区块高度(为了资产的安全性,钱包同步的区块比主链落后了12个区块)",
"9. 增加了域名节点,自动适配国内外用户",
"10. 增加了钱包启动图"
]
},
"dapps": {
}
},

"en": {
"docs": {
"version": "1.1.6",
"url": "https://sero-popup.s3-ap-southeast-1.amazonaws.com/wgt/1.1.6/cash.sero.popup.community.wgt",
"show": false,
"description": [
"1. Optimized the problem that the wallet page cannot be opened",
"2. Added the function of hot wallet update",
"3. Optimized core code for synchronizing block data",
"4. Optimized status prompt for synchronization process",
"5. In the wallet management interface, the function of repairing data has been added, which can repair data for a single account",
"6. Removed the selection function of the open source community",
"7. Optimized the function of importing mnemonics, and automatically format the mnemonics (remove spaces and carriage returns).",
"8. Shows the latest block height of the current account synchronization (for asset security, the wallet synchronized block is 12 blocks behind the main chain)",
"9. Added domain name nodes, automatically adapt to domestic and foreign users",
"10. Added wallet startup image"
]
},
"dapps": {
}
}
}
13 changes: 11 additions & 2 deletions docs/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,28 @@
}

function checkUpdate(wgtVer){
var checkUrl="https://sero-media-1256272584.cos.ap-shanghai.myqcloud.com/popup/version.json";
var checkUrl="https://sero-media-1256272584.cos.ap-shanghai.myqcloud.com/popup/version.json?"+new Date().getTime();
if(!isZH()){
checkUrl = "http://popup-github.sero.cash/version.json";
checkUrl = "http://popup-github.sero.cash/version.json?"+new Date().getTime();
}
if(isAndroid){
checkUrl="https://sero-media-1256272584.cos.ap-shanghai.myqcloud.com/popup/android.json?"+new Date().getTime();
if(!isZH()){
checkUrl = "http://popup-github.sero.cash/android.json?"+new Date().getTime();
}
}
console.log(checkUrl);
httpGet(checkUrl,function(resp,err){
if(!err){
console.log(resp);
var data= JSON.parse(resp);
var _remoteObj = null;
if(isZH()){
_remoteObj = data["zh"];
}else{
_remoteObj = data["en"];
}

if(wgtVer&&_remoteObj.docs&&(wgtVer!==_remoteObj.docs.version)){
plus.nativeUI.closeWaiting();
downWgt(_remoteObj);
Expand Down
3 changes: 2 additions & 1 deletion docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@
}
},
"plugins" : {
"speech" : {}
"speech" : {},
"ad" : {}
}
},
"screenOrientation" : [ "portrait-primary" ]
Expand Down
Binary file modified docs/unpackage/release/cash.sero.popup.community.wgt
Binary file not shown.
8 changes: 4 additions & 4 deletions docs/version.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"zh": {
"docs": {
"version": "1.1.6",
"version": "1.1.5",
"url": "https://sero-media-1256272584.cos.ap-shanghai.myqcloud.com/popup/wgt/1.1.6/cash.sero.popup.community.wgt",
"show": true,
"show": false,
"description": [
"1. 优化了钱包页面打不开的问题",
"2. 增加了钱包热更新的功能",
Expand All @@ -23,9 +23,9 @@

"en": {
"docs": {
"version": "1.1.6",
"version": "1.1.5",
"url": "https://sero-popup.s3-ap-southeast-1.amazonaws.com/wgt/1.1.6/cash.sero.popup.community.wgt",
"show": true,
"show": false,
"description": [
"1. Optimized the problem that the wallet page cannot be opened",
"2. Added the function of hot wallet update",
Expand Down
45 changes: 45 additions & 0 deletions public/android.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"zh": {
"docs": {
"version": "1.1.6",
"url": "https://sero-media-1256272584.cos.ap-shanghai.myqcloud.com/popup/wgt/1.1.6/cash.sero.popup.community.wgt",
"show": false,
"description": [
"1. 优化了钱包页面打不开的问题",
"2. 增加了钱包热更新的功能",
"3. 优化了同步区块数据的核心代码",
"4. 优化了同步过程的状态提示",
"5. 在钱包管理界面,增加了修复数据的功能,可对单个账户修复数据",
"6. 删除了开源社区的选择功能",
"7. 优化了助记词导入的功能,自动格式化助记词(去空格和去回车符)。",
"8. 显示了当前账号同步的最新区块高度(为了资产的安全性,钱包同步的区块比主链落后了12个区块)",
"9. 增加了域名节点,自动适配国内外用户",
"10. 增加了钱包启动图"
]
},
"dapps": {
}
},

"en": {
"docs": {
"version": "1.1.6",
"url": "https://sero-popup.s3-ap-southeast-1.amazonaws.com/wgt/1.1.6/cash.sero.popup.community.wgt",
"show": false,
"description": [
"1. Optimized the problem that the wallet page cannot be opened",
"2. Added the function of hot wallet update",
"3. Optimized core code for synchronizing block data",
"4. Optimized status prompt for synchronization process",
"5. In the wallet management interface, the function of repairing data has been added, which can repair data for a single account",
"6. Removed the selection function of the open source community",
"7. Optimized the function of importing mnemonics, and automatically format the mnemonics (remove spaces and carriage returns).",
"8. Shows the latest block height of the current account synchronization (for asset security, the wallet synchronized block is 12 blocks behind the main chain)",
"9. Added domain name nodes, automatically adapt to domestic and foreign users",
"10. Added wallet startup image"
]
},
"dapps": {
}
}
}
13 changes: 11 additions & 2 deletions public/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,28 @@
}

function checkUpdate(wgtVer){
var checkUrl="https://sero-media-1256272584.cos.ap-shanghai.myqcloud.com/popup/version.json";
var checkUrl="https://sero-media-1256272584.cos.ap-shanghai.myqcloud.com/popup/version.json?"+new Date().getTime();
if(!isZH()){
checkUrl = "http://popup-github.sero.cash/version.json";
checkUrl = "http://popup-github.sero.cash/version.json?"+new Date().getTime();
}
if(isAndroid){
checkUrl="https://sero-media-1256272584.cos.ap-shanghai.myqcloud.com/popup/android.json?"+new Date().getTime();
if(!isZH()){
checkUrl = "http://popup-github.sero.cash/android.json?"+new Date().getTime();
}
}
console.log(checkUrl);
httpGet(checkUrl,function(resp,err){
if(!err){
console.log(resp);
var data= JSON.parse(resp);
var _remoteObj = null;
if(isZH()){
_remoteObj = data["zh"];
}else{
_remoteObj = data["en"];
}

if(wgtVer&&_remoteObj.docs&&(wgtVer!==_remoteObj.docs.version)){
plus.nativeUI.closeWaiting();
downWgt(_remoteObj);
Expand Down
8 changes: 4 additions & 4 deletions public/version.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"zh": {
"docs": {
"version": "1.1.6",
"version": "1.1.5",
"url": "https://sero-media-1256272584.cos.ap-shanghai.myqcloud.com/popup/wgt/1.1.6/cash.sero.popup.community.wgt",
"show": true,
"show": false,
"description": [
"1. 优化了钱包页面打不开的问题",
"2. 增加了钱包热更新的功能",
Expand All @@ -23,9 +23,9 @@

"en": {
"docs": {
"version": "1.1.6",
"version": "1.1.5",
"url": "https://sero-popup.s3-ap-southeast-1.amazonaws.com/wgt/1.1.6/cash.sero.popup.community.wgt",
"show": true,
"show": false,
"description": [
"1. Optimized the problem that the wallet page cannot be opened",
"2. Added the function of hot wallet update",
Expand Down

0 comments on commit 4d38daf

Please sign in to comment.