Commit c8941e69 authored by 王炽's avatar 王炽

6666666

parent 4930976f
{ {
"type": "activity", "type": "activity",
"name": "surf_dfws" "name": "hongbaoyu_szyh191113"
} }
\ No newline at end of file
...@@ -24,8 +24,8 @@ class TuiaAutoUpload { ...@@ -24,8 +24,8 @@ class TuiaAutoUpload {
var _this = this; var _this = this;
this.client = new OSS({ this.client = new OSS({
region: 'oss-cn-hangzhou', region: 'oss-cn-hangzhou',
accessKeyId: 'LTAIdGi1IOap7fkF', accessKeyId: 'LTAIqO2wblIxQvwc',
accessKeySecret: 'SKrOOp6EVtDGEV47yn0t2h97gyNioQ', accessKeySecret: '4brsaSRbRpjxw3oDIxJi6bNMcndIR6',
bucket: _this.type === 'prod' ? 'duiba' : 'daily-duiba' bucket: _this.type === 'prod' ? 'duiba' : 'daily-duiba'
}); });
this.bar = new ProgressBar(chalk.yellow(` 文件上传中 [:bar] :current/${this.files().length} :percent :elapseds`), { this.bar = new ProgressBar(chalk.yellow(` 文件上传中 [:bar] :current/${this.files().length} :percent :elapseds`), {
......
...@@ -157,9 +157,11 @@ export default class StartScene extends Scene { ...@@ -157,9 +157,11 @@ export default class StartScene extends Scene {
//活动结束的特殊处理 //活动结束的特殊处理
if(this.isEnd){ if(this.isEnd){
console.log('1111111')
idata = {isNewActivityGuide:true, todayTimesIsEnd:true}; idata = {isNewActivityGuide:true, todayTimesIsEnd:true};
}else{ }else{
console.log('22222222')
startTime = idata.scenes[0].startTime - idata.serverTime + this.desTime; startTime = idata.scenes[0].startTime - idata.serverTime + this.desTime;
endTime = idata.scenes[0].endTime - idata.serverTime - this.desTime;; endTime = idata.scenes[0].endTime - idata.serverTime - this.desTime;;
console.log('startTime='+startTime); console.log('startTime='+startTime);
...@@ -453,13 +455,24 @@ export default class StartScene extends Scene { ...@@ -453,13 +455,24 @@ export default class StartScene extends Scene {
// this.doJion(); // this.doJion();
// }); // });
// }else{ // }else{
this.doJion();
// } // }
NetManager.ins.informationZhaohang((success) => {
if(success){
this.doJion();
}else{
if(DataManager.ins.getInformationZhaohangData.code == 'E1002060003'){
PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'活动结束了!'});
}else{
PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'获取场次信息失败,请刷新重试'});
}
}
}, DataManager.ins.customCfgData.actId);
} }
private doJion():void{ private doJion():void{
let type = ''; let type = '';
if(DataManager.ins.getInformationZhaohangData.data.joinTimesDetail && DataManager.ins.getInformationZhaohangData.data.joinTimesDetail.length){ if(DataManager.ins.getInformationZhaohangData.data.joinTimesDetail
&& DataManager.ins.getInformationZhaohangData.data.joinTimesDetail.length){
type = DataManager.ins.getInformationZhaohangData.data.joinTimesDetail[0].type; type = DataManager.ins.getInformationZhaohangData.data.joinTimesDetail[0].type;
}else{ }else{
type = ''; type = '';
......
...@@ -2,40 +2,35 @@ ...@@ -2,40 +2,35 @@
"success": true, "success": true,
"code": "0000000000", "code": "0000000000",
"desc": "OK", "desc": "OK",
"timestamp": 1553774900820, "timestamp": 1573799313549,
"data": { "data": {
"scenes": [ "scenes": [
{ {
"scene": 1, "scene": 1,
"startTime": 1553738400000, "startTime": 1573796400000,
"endTime": 1553742000000 "endTime": 1573798200000
}, },
{ {
"scene": 2, "scene": 2,
"startTime": 1553765400000, "startTime": 1573802400000,
"endTime": 1553769000000 "endTime": 1573804200000
}, },
{ {
"scene": 3, "scene": 3,
"startTime": 1553776200000, "startTime": 1573804800000,
"endTime": 1553779800000 "endTime": 1573806600000
} }
], ],
"serverTime": 1553738500000, "serverTime": 1573799313545,
"availableTime": 3600000, "availableTime": 1800000,
"joinTimes": 0, "joinTimes": 0,
"ifCanAddJoinTimesByShare": true, "ifCanAddJoinTimesByShare": false,
"joinTimesByShare": 1, "joinTimesByShare": 0,
"currentTimes": 1553738300000, "joinTimesDetail": [],
"joinTimesDetail": [ "currentTimes": null,
{ "isNewActivityGuide": false,
"times": 1, "recentJoinResult": null,
"type": "0" "todayTimesIsEnd": false,
}, "newActivityGuide": false
{
"times": 1,
"type": "1"
}
]
} }
} }
\ No newline at end of file
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