This commit is contained in:
pengxiaolong
2025-07-21 22:10:59 +08:00
parent 31527ba8a6
commit 7116e57fc3
157 changed files with 2793 additions and 405 deletions

View File

@@ -0,0 +1,9 @@
"use strict";
const common_vendor = require("../common/vendor.js");
new common_vendor.COS({
SecretId: "AKID4KPIyQgjjnkWJzSnwtfHj281tcBZo28v",
// 推荐使用环境变量获取;用户的 SecretId建议使用子账号密钥授权遵循最小权限指引降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
SecretKey: "kQvMjuscBWgfSCqeHiGfx3vc7PUP7ctx"
// 推荐使用环境变量获取;用户的 SecretKey建议使用子账号密钥授权遵循最小权限指引降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
});
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/audioMessages.js.map

View File

@@ -109,10 +109,70 @@ function messageRead(goeasy, userid) {
});
});
}
function sendCustomMessage(goeasy, type, userid, order, avatar, nickname) {
return new Promise((resolve, reject) => {
var im = goeasy.im;
var customMessage = im.createCustomMessage({
type,
//字符串,可以任意自定义类型
payload: order,
to: {
type: common_vendor.jo.IM_SCENE.PRIVATE,
//私聊还是群聊群聊为GoEasy.IM_SCENE.GROUP
id: userid,
//接收方用户id
data: { "avatar": avatar, "nickname": nickname }
//好友扩展数据, 任意格式的字符串或者对象用于更新会话列表conversation.data
}
});
im.sendMessage({
message: customMessage,
onSuccess: function() {
resolve(customMessage);
},
onFailed: function(error) {
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:137", "Failed to send messagecode:" + error.code + ",error" + error.content);
}
});
});
}
function conversationTop(goeasy, conversation, top) {
return new Promise((resolve, reject) => {
var im = goeasy.im;
im.topConversation({
conversation,
top,
//或者 false
onSuccess: function() {
resolve("成功");
},
onFailed: function(error) {
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:154", "失败:", error);
}
});
});
}
function conversationDelete(goeasy, conversation) {
return new Promise((resolve, reject) => {
var im = goeasy.im;
im.removeConversation({
conversation,
onSuccess: function() {
resolve("删除会话成功");
},
onFailed: function(error) {
common_vendor.index.__f__("log", "at components/goEasyTool/tool.js:169", error);
}
});
});
}
exports.conversationDelete = conversationDelete;
exports.conversationTop = conversationTop;
exports.getConversationList = getConversationList;
exports.getConversationMessages = getConversationMessages;
exports.goEasylogin = goEasylogin;
exports.goEasylogout = goEasylogout;
exports.messageRead = messageRead;
exports.sendCustomMessage = sendCustomMessage;
exports.sendMessage = sendMessage;
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/goEasyTool/tool.js.map

View File

@@ -0,0 +1,9 @@
"use strict";
const common_vendor = require("../common/vendor.js");
new common_vendor.COS({
SecretId: "AKID4KPIyQgjjnkWJzSnwtfHj281tcBZo28v",
// 推荐使用环境变量获取;用户的 SecretId建议使用子账号密钥授权遵循最小权限指引降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
SecretKey: "kQvMjuscBWgfSCqeHiGfx3vc7PUP7ctx"
// 推荐使用环境变量获取;用户的 SecretKey建议使用子账号密钥授权遵循最小权限指引降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
});
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/picturesVideosMessages.js.map

View File

@@ -3,7 +3,7 @@ const common_vendor = require("../common/vendor.js");
const components_addPrefixToHeaderIcon = require("./addPrefixToHeaderIcon.js");
function request(urldata) {
const { url, data, method, header, userInfo } = urldata;
const baseUrl = "http://120.26.251.180:8086/" + url;
const baseUrl = "https://pk.zhukeping.com/" + url;
if (userInfo) {
return new Promise((resolve, reject) => {
common_vendor.index.getStorage({