|
@@ -82,7 +82,7 @@ module.exports = {
|
|
|
getClassRead(data) {
|
|
|
let url = getBaseUrl(`wx/userRead`);
|
|
|
return request.getInstance().header({
|
|
|
- uid:wx.getStorageSync('uid')
|
|
|
+ uid: wx.getStorageSync('uid')
|
|
|
}).data(data).url(url).send();
|
|
|
},
|
|
|
// 作品播放了+1
|
|
@@ -94,7 +94,7 @@ module.exports = {
|
|
|
// },
|
|
|
// 发布作品
|
|
|
postWork(data) {
|
|
|
- console.log('上传数据',data);
|
|
|
+ console.log('上传数据', data);
|
|
|
let url = getBaseUrl(`wx/userRead`);
|
|
|
// let url = `https://reader-test.efunbox.cn/userRead`;
|
|
|
return request.getInstance().header({
|
|
@@ -110,7 +110,7 @@ module.exports = {
|
|
|
}).url(url).data(data).method('PUT').send();
|
|
|
},
|
|
|
// 视频评测数据
|
|
|
- postWorksScore(data){
|
|
|
+ postWorksScore(data) {
|
|
|
let url = getBaseUrl(`wx/assessment`);
|
|
|
return request.getInstance().header({
|
|
|
uid: wx.getStorageSync('uid')
|
|
@@ -444,13 +444,13 @@ module.exports = {
|
|
|
uid: wx.getStorageSync('uid')
|
|
|
}).data(data).url(url).method('POST').send();
|
|
|
},
|
|
|
- shareLog(data){
|
|
|
+ shareLog(data) {
|
|
|
let url = getBaseUrl('wx/shareLog');
|
|
|
return request.getInstance().header({
|
|
|
uid: wx.getStorageSync('uid')
|
|
|
}).data(data).url(url).method('POST').send();
|
|
|
},
|
|
|
- shareImgLog(data){
|
|
|
+ shareImgLog(data) {
|
|
|
let url = getBaseUrl('wx/shareLog/saveShareImg');
|
|
|
return request.getInstance().header({
|
|
|
uid: wx.getStorageSync('uid')
|
|
@@ -480,6 +480,15 @@ module.exports = {
|
|
|
actionName
|
|
|
}).url(url).method('POST').send();
|
|
|
},
|
|
|
+ // 用户行为统计
|
|
|
+ userEvent(code) {
|
|
|
+ let url = getBaseUrl('wx/userEvent/v2');
|
|
|
+ return request.getInstance().header({
|
|
|
+ uid: wx.getStorageSync('uid')
|
|
|
+ }).data({
|
|
|
+ action: code
|
|
|
+ }).url(url).method('POST').send();
|
|
|
+ },
|
|
|
// 用户播放视频时长统计
|
|
|
playLogReport(data) {
|
|
|
let url = getBaseUrl('base/playLog');
|
|
@@ -654,7 +663,7 @@ module.exports = {
|
|
|
}).url(url).method('GET').send();
|
|
|
},
|
|
|
// 五一活动,统计打点
|
|
|
- postActEvent(action){
|
|
|
+ postActEvent(action) {
|
|
|
let url = getBaseUrl(`wx/activity/event`)
|
|
|
return request.getInstance().header({
|
|
|
uid: wx.getStorageSync('uid'),
|
|
@@ -662,5 +671,4 @@ module.exports = {
|
|
|
action
|
|
|
}).method('POST').send();
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
+}
|