hank 1 year ago
parent
commit
4fd72b07f9

+ 56 - 1
config/config.js

@@ -82,10 +82,65 @@ const appInfoObj = {
         appName: '蓝晶享看视界',
         ads: {},
     },
+    // ------------------------2025-04-11 新增
+    wxa721f4474e3d548a: {
+        appid: 'wxa721f4474e3d548a',
+        ghid: 'gh_63df1cb1521b',
+        appName: '蓝晶创映空间',
+        ads: {},
+    },
+    wxc5e6b24889027032: {
+        appid: 'wxc5e6b24889027032',
+        ghid: 'gh_87e9da72ca79',
+        appName: '蓝晶云瞰视界',
+        ads: {},
+    },
+    wxef68681d5044ca05: {
+        appid: 'wxef68681d5044ca05', // 小说类目没过
+        ghid: 'gh_1a76c4ef014a',
+        appName: '蓝晶帧享视界',
+        ads: {},
+    },
+    wx706acdc696d025ad: {
+        appid: 'wx706acdc696d025ad',
+        ghid: 'gh_e9351f804e32',
+        appName: '蓝晶视界漫游',
+        ads: {},
+    },
+    wx8288d587b717897e: {
+        appid: 'wx8288d587b717897e',
+        ghid: 'gh_7d5b65ac29ee',
+        appName: '蓝晶瞰影工坊',
+        ads: {},
+    },
+    wx54a8d0e7b33c48c8: {
+        appid: 'wx54a8d0e7b33c48c8', // 小说类目没过
+        ghid: 'gh_cbbd0f0b8865',
+        appName: '蓝晶帧探视界',
+        ads: {},
+    },
+    wx0138dee6d680c705: {
+        appid: 'wx0138dee6d680c705',
+        ghid: 'gh_f82668af04f8',
+        appName: '蓝晶视海遨游',
+        ads: {},
+    },
+    wx4420e2d55b0ede27: {
+        appid: 'wx4420e2d55b0ede27',
+        ghid: 'gh_16815103d58f',
+        appName: '蓝晶影创空间',
+        ads: {},
+    },
+    wx1eb74c589da1731f: {
+        appid: 'wx1eb74c589da1731f',
+        ghid: 'gh_e8ccd3f2b283',
+        appName: '蓝晶视界奇遇',
+        ads: {},
+    },
 };
 
 // @config 确定使用的小程序appid
-const appid = 'wxa7a33088566e1292';
+const appid = 'wx1eb74c589da1731f';
 export const apple = {
     ...appInfoObj[appid],
     appKey: '49TBR8Z1rA7PyqD30FV0v48AU',

+ 3 - 1
pages/bookshelf/bookshelf.js

@@ -10,6 +10,7 @@ import {
 } from '../../config/config'
 
 let interstitialAd = null
+let app = getApp()
 
 Page({
     data: {
@@ -170,7 +171,8 @@ Page({
         SendEvent('click_shelf_novel', {
             "video_id": book.novelId,
             "wx_book_id": book.wxBookId,
-            "chapter_no": book.novelChapterId
+            "chapter_no": book.novelChapterId,
+            "uuid": app.globalData.uuid
         });
         // 使用公共的goToBookDetail函数
         goToBookDetail({

+ 4 - 3
pages/category/category.js

@@ -10,6 +10,7 @@ import {
 } from '../../config/config'
 
 let interstitialAd = null
+let app = getApp()
 
 Page({
     data: {
@@ -126,7 +127,7 @@ Page({
             page: 1,
             hasMore: true
         });
-        SendEvent('click_classify_type', {"gender": gender});
+        SendEvent('click_classify_type', {"gender": gender, "uuid": app.globalData.uuid});
         if (this.data.isLoggedIn) {
             await this.loadCategories();
         }
@@ -168,7 +169,7 @@ Page({
             page: 1,
             hasMore: true
         });
-        SendEvent('click_classify_name', {"category": category});
+        SendEvent('click_classify_name', {"category": category, "uuid": app.globalData.uuid});
         this.loadBookList(category);
     },
 
@@ -232,7 +233,7 @@ Page({
             id,
             wxbookid
         } = e.currentTarget.dataset;
-        SendEvent('click_classfy_novel', {"novel_id": id, "wx_book_id": wxbookid})
+        SendEvent('click_classfy_novel', {"novel_id": id, "wx_book_id": wxbookid, "uuid": app.globalData.uuid})
         goToBookDetail({
             bookId: id,
             wxBookId: wxbookid

+ 6 - 4
pages/index/index.js

@@ -292,7 +292,8 @@ Page({
             SendEvent('click_bookmall_recently_read', {
                 "video_id": this.data.recentBook.novelId,
                 "wx_book_id": this.data.recentBook.wxBookId,
-                "chapter_no": this.data.recentBook.novelChapterId
+                "chapter_no": this.data.recentBook.novelChapterId,
+                "uuid": app.globalData.uuid
             });
             goToBookDetail({
                 bookId: this.data.recentBook.novelId,
@@ -333,7 +334,7 @@ Page({
             gender
         });
         SendEvent('click_bookmall_classify', {
-            "gender": gender
+            "gender": gender,"uuid": app.globalData.uuid
         });
         // 重新加载数据
         this.loadAllData();
@@ -554,8 +555,9 @@ Page({
         const banner = e.currentTarget.dataset.item;
         if (banner.linkUrl) {
             SendEvent('banner_click', {
-                banner_id: banner.id,
-                banner_title: banner.title,
+                "banner_id": banner.id,
+                "banner_title": banner.title,
+                "uuid": app.globalData.uuid
             });
             wx.navigateTo({
                 url: banner.linkUrl

+ 1 - 1
pages/mine/mine.js

@@ -90,7 +90,7 @@ Page({
     // },
 
     goToReadingHistory() {
-        SendEvent('mine_reading_history', {});
+        SendEvent('mine_reading_history', {"uuid": app.globalData.uuid});
         wx.navigateTo({
             url: '/pages/readingHistory/readingHistory'
         })

+ 12 - 3
pages/video/detail.js

@@ -37,7 +37,12 @@ Page({
         this.setData({
             scene: wx.getStorageSync('scene') || 1001
         })
-        SendEvent('show_video', {"video_id": videoId, "tag_id": tagId, "scene": this.data.scene});
+        SendEvent('show_video', {
+            "video_id": videoId,
+            "tag_id": tagId,
+            "scene": this.data.scene,
+            "uuid": app.globalData.uuid
+        });
         console.log('加载视频详情页,ID:', videoId, '标题:', videoTitle);
 
         // 获取系统信息
@@ -387,7 +392,7 @@ Page({
         // 将标题进行URI编码处理
         const encodedTitle = encodeURIComponent(video.title || '');
         this.unlockUrl = `/pages/video/detail?id=${videoId}&title=${encodedTitle}&tag_id=${tag_id}`;
-        SendEvent('click_recommend_video', {"video_id": videoId, "tag_id": tag_id});
+        SendEvent('click_recommend_video', {"video_id": videoId, "tag_id": tag_id, "uuid": app.globalData.uuid});
         if (!video.lock) {
             // 跳转到视频详情页
             wx.navigateTo({
@@ -431,7 +436,11 @@ Page({
         //     url: '/pages/video/video',
         // });
         console.log('返回上一页')
-        SendEvent('click_return_list', {"video_id": this.data.videoId, "tag_id": this.data.tagId});
+        SendEvent('click_return_list', {
+            "video_id": this.data.videoId,
+            "tag_id": this.data.tagId,
+            "uuid": app.globalData.uuid
+        });
     },
 
     // 分享按钮点击事件

+ 8 - 4
pages/video/video.js

@@ -66,7 +66,7 @@ Page({
         this.interstitalLoad()
         getTemplateConfig({
             box_type: 67,
-            uuid: getApp().globalData.uuid
+            uuid: app.globalData.uuid
         }).then(res => {
             this.setData({
                 globalConfig: res.globalConfig
@@ -265,6 +265,7 @@ Page({
                     getUuid(body).then(async uuidres => {
                         console.log('登录成功:', uuidres);
                         app.globalData.uuid = uuidres.uuid;
+                        app.globalData.openId = uuidres.open_id;
                         // 直接从视频链接进入,同时登录IAA小说用户
                         // userLogin({
                         //     "appid": apple.appid,
@@ -293,6 +294,9 @@ Page({
                         //     app.globalData.isLogin = false;
                         //     reject(err);
                         // })
+                        console.log('登录后的openid:', uuidres.open_id)
+                        console.log('登录成功:', app.globalData)
+                        SendEvent('login_shanhu', {"uuid": uuidres.uuid});
                         resolve(res.uuid)
                     }).catch((err) => {
                         reject(err)
@@ -550,7 +554,7 @@ Page({
             });
             return;
         }
-        SendEvent('click_video_tab_video', {"video_id": id, "tag_id": info.tag_ids[0]})
+        SendEvent('click_video_tab_video', {"video_id": id, "tag_id": info.tag_ids[0], "uuid": app.globalData.uuid})
         const encodedTitle = encodeURIComponent(info.title || '');
         this.unlockUrl = `/pages/video/detail?id=${id}&title=${encodedTitle}&tag_id=${info.tag_ids[0]}`
         if (!info.lock) {
@@ -609,7 +613,7 @@ Page({
         if (jump === 1) {
             url += '&jump=1';
         }
-        SendEvent('click_list_share', {"video_id": video.id, "tag_id": video.tag_ids[0]});
+        SendEvent('click_list_share', {"video_id": video.id, "tag_id": video.tag_ids[0], "uuid": app.globalData.uuid});
         return {
             title: video.title,
             path: url,
@@ -638,7 +642,7 @@ Page({
         const jump = wx.getStorageSync('jump');// 是否跳转阅读器
         let url = '';
         url = `shared_video_id=${video.id}&title=${encodeURIComponent(video.title)}&tag_id=${video.tag_ids[0]}&share_count=1`;
-        SendEvent('click_list_share', {"video_id": video.id, "tag_id": video.tag_ids[0]});
+        SendEvent('click_list_share', {"video_id": video.id, "tag_id": video.tag_ids[0], "uuid": app.globalData.uuid});
         if (jump === 1) {
             url += '&jump=1';
         }

+ 1 - 1
project.config.json

@@ -24,6 +24,6 @@
     "tabIndent": "auto",
     "tabSize": 2
   },
-  "appid": "wxa7a33088566e1292",
+  "appid": "wx1eb74c589da1731f",
   "simulatorPluginLibVersion": {}
 }