Commit 1c02ebf9 authored by wildfirecode13's avatar wildfirecode13

u

parent 90c7686e
......@@ -37,6 +37,7 @@ function uploadSingleJs(url) {
//单js文件上传
co(function* () {
const originPath = `/db_games/${url}/output.js`;
var client = new OSS({
region: 'oss-cn-hangzhou',
accessKeyId: 'LTAI4Fw25WcfcGv7FvcHoiHK',
......@@ -51,6 +52,17 @@ function uploadSingleJs(url) {
}
if (originFile.status === 404)
yield client.put(originPath, "./output.js");
const originPath2 = `/db_games/${url}/output.js.map`;
var originFile2;
try {
originFile2 = yield client.head(originPath2);
} catch (error) {
originFile2 = error;
}
if (originFile2.status === 404)
yield client.put(originPath2, "./output.js.map");
})
}
......
......@@ -18,7 +18,7 @@ import updateShareFunc from '../share';
import { getPxTokenSave, getWebData, sendWebNet, WebNetName } from '../WebNet';
export class IndexScene extends Scene {
updateIndexUI({ experienceAmount, yesterdayIncome, sumIncome, sevenDayAnnualization, assistFriendNum, otherExperienceAmount,canWithdraw }) {
updateIndexUI({ experienceAmount, yesterdayIncome, sumIncome, sevenDayAnnualization, assistFriendNum, otherExperienceAmount, canWithdraw }) {
getObject(this, 'index_experienceAmountTips').text = experienceAmount || "0";
getObject(this, 'index_sumIncomeTips').text = sumIncome || '0';
getObject(this, 'index_sevenDayAnnualizationTips').text = sevenDayAnnualization;
......@@ -47,7 +47,7 @@ export class IndexScene extends Scene {
FYGE.Tween.get(__tmp__, {
loop: false, onChange: (param) => {
index_experienceAmountTips.text = Math.ceil(experienceAmount * __tmp__.a) + '';
progressBar.value =percent*__tmp__.a;
progressBar.value = percent * __tmp__.a;
}
}).to({ a: 1 }, 700)
}
......@@ -102,16 +102,8 @@ export class IndexScene extends Scene {
data = data || {};
const { action, from } = data;
console.log('IndexScene from=', from, 'action=', action);
if (action == 'showSharePanel') {
this.showSharePanel();
}
// setTimeout(() => {
// showPanel(DrawPanel)
// }, 1000);
sendWebNet(WebNetName.carouselInfo).then(res => {
const template = '{phone}邀请1位好友,获得了{amount}体验金';
const datas = res.data.map(item => {
let str = template.replace('{phone}', item.nickname);
......@@ -129,7 +121,10 @@ export class IndexScene extends Scene {
this.updateIndexUI(myWalletResult.data);
getPxTokenSave().then(token => {
sendWebNet(WebNetName.createItem, { token: token }).then(createItemResult => {
updateShareFunc('inIndexScene', createItemResult.data)
updateShareFunc('inIndexScene', createItemResult.data);
if (action == 'showSharePanel') {
this.showSharePanel();
}
});
})
......
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