|
@@ -116,8 +116,28 @@ function getActivitDataCache(eventsType, eventsId){
|
|
|
return data;
|
|
return data;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function saveActivitDataCache(eventsType, actData){
|
|
|
|
|
- magicJS.logger.error(JSON.stringify(actData));
|
|
|
|
|
|
|
+function saveActivitDataCache(eventsType, actData, eventsId){
|
|
|
|
|
+ if(!actData){
|
|
|
|
|
+ if(!eventsId){
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ let data = null;
|
|
|
|
|
+ let storeKey = null;
|
|
|
|
|
+ if(eventsType == 1){
|
|
|
|
|
+ storeKey = HbcpreConstKey.compositeActivityData;
|
|
|
|
|
+ }else if(eventsType == 3){
|
|
|
|
|
+ storeKey = HbcpreConstKey.exchangeActivityData;
|
|
|
|
|
+ }
|
|
|
|
|
+ if(!storeKey){
|
|
|
|
|
+ data = {};
|
|
|
|
|
+ }else{
|
|
|
|
|
+ data = magicJS.data.read(storeKey, {});
|
|
|
|
|
+ }
|
|
|
|
|
+ if(eventsId){
|
|
|
|
|
+ data[eventsId] = null;
|
|
|
|
|
+ }
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
let data = null;
|
|
let data = null;
|
|
|
let storeKey = null;
|
|
let storeKey = null;
|
|
|
if(eventsType == 1){
|
|
if(eventsType == 1){
|