Commit 9b48080f authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent c2752f46
...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
sed -i '' 's/,this._isFinished=!0//' node_modules/web-animations-js/web-animations.min.js sed -i '' 's/,this._isFinished=!0//' node_modules/web-animations-js/web-animations.min.js
sed -i '' "s/ class:/ 'class':/g" node_modules/@angular/material/@angular/material.js sed -i '' "s/ class:/ 'class':/g" node_modules/@angular/material/@angular/material.js
sed -i '' "s/ extends:/ 'extends':/" node_modules/intl/lib/core.js sed -i '' "s/ extends:/ 'extends':/" node_modules/intl/lib/core.js
sed -i '' "s/\[value, name\]/\[name, value\]/" node_modules/url-polyfill/url-polyfill.js
{ {
"name": "mycard-mobile", "name": "mycard-mobile",
"version": "1.0.4", "version": "1.0.6",
"license": "UNLISENCED", "license": "UNLISENCED",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"build:dev": "ng build --base-href /mobile2/index.html --locale zh-CN --aot", "build:dev": "ng build --base-href /mobile2/index.html --locale zh-CN --aot",
"lint": "ng lint", "lint": "ng lint",
"publish": "npm run build && ./ossutil cp -rf dist oss://mycard/mobile", "publish": "npm run build && ./ossutil cp -rf dist oss://mycard/mobile",
"publish:dev": "npm run build:2 && ./ossutil cp -rf dist oss://mycard/mobile2" "publish:dev": "npm run build:dev && ./ossutil cp -rf dist oss://mycard/mobile2"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
......
...@@ -176,10 +176,13 @@ export class YGOProService { ...@@ -176,10 +176,13 @@ export class YGOProService {
params: { username: this.login.user.username, type: 0, page_num: 1 } params: { username: this.login.user.username, type: 0, page_num: 1 }
}).map((response) => response.json().data[0]).toPromise(); }).map((response) => response.json().data[0]).toPromise();
// 从来没打过
if (!last) {
return;
}
const last_game_at = localStorage.getItem('last_game_at'); const last_game_at = localStorage.getItem('last_game_at');
localStorage.setItem('last_game_at', last.end_time); localStorage.setItem('last_game_at', last.end_time);
console.log(last);
// 初次运行 // 初次运行
if (!last_game_at) { if (!last_game_at) {
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment