Skip to content

Commit 190c134

Browse files
author
sanfordsun
committed
fix: version
1 parent 5e73535 commit 190c134

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

miniprogram/app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,14 +515,14 @@
515515
"materialType": "image/*",
516516
"name": "用${nickname}打开",
517517
"desc": "聊天内容长按打开",
518-
"path": "pages/chattool/material_open/material_open"
518+
"path": "packageAPI/pages/chattool/material_open/material_open"
519519
}
520520
],
521521
"multiSelectSupportedMaterials": [
522522
{
523523
"materialType": ["image/*", "text/message"],
524524
"desc": "聊天内容长按多选打开",
525-
"path": "pages/chattool/material_open/material_open",
525+
"path": "packageAPI/pages/chattool/material_open/material_open",
526526
"scopes": []
527527
}
528528
]

miniprogram/packageAPI/pages/chattool/activity_assist/activity_assist.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const util = require('../../../../util/util')
2+
const systemInfo = wx.getSystemInfoSync()
13
Page({
24
data: {
35
activityList: [],
@@ -17,6 +19,15 @@ Page({
1719
},
1820

1921
onLoad() {
22+
if (util.compareVersion(systemInfo.SDKVersion, '3.7.8') < 0) {
23+
wx.showModal({
24+
title: '需升级微信到新版本体验',
25+
showCancel: false,
26+
content: '',
27+
})
28+
return
29+
}
30+
2031
wx.cloud.init({
2132
// env 参数说明:
2233
// env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源

miniprogram/packageAPI/pages/chattool/util.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export function getGroupEnterInfo() {
2424
roomid: opengid || openSingleRoomID,
2525
chatType: groupInfo.data.chat_type
2626
}
27-
console.info('@@@ groupInfo: ', data)
2827
resolve(data)
2928
} else {
3029
reject()
@@ -37,7 +36,7 @@ export function getGroupEnterInfo() {
3736
reject(res)
3837
},
3938
complete(res) {
40-
console.info('@@@ getGroupEnterInfo complete: ',res)
39+
console.info('getGroupEnterInfo complete: ',res)
4140
}
4241
})
4342
})

project.private.config.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
"condition": {
1212
"miniprogram": {
1313
"list": [
14+
{
15+
"name": "聊天工具-签到助手",
16+
"pathName": "packageAPI/pages/chattool/activity_assist/activity_assist",
17+
"query": "",
18+
"launchMode": "default",
19+
"scene": null
20+
},
1421
{
1522
"name": "packageAPI/pages/chattool/material_view/material_view",
1623
"pathName": "packageAPI/pages/chattool/material_view/material_view",
@@ -39,13 +46,6 @@
3946
"launchMode": "default",
4047
"scene": null
4148
},
42-
{
43-
"name": "聊天工具-签到助手",
44-
"pathName": "packageAPI/pages/chattool/open-chattool/open-chattool",
45-
"query": "",
46-
"launchMode": "default",
47-
"scene": null
48-
},
4949
{
5050
"name": "gaussian-splatting-ar",
5151
"pathName": "packageAPI/pages/ar/gaussian-splatting/gaussian-splatting-ar",

0 commit comments

Comments
 (0)