Merge remote-tracking branch 'origin/dev-wdb'

This commit is contained in:
huxuejian 2026-02-09 20:52:56 +08:00
commit 9af63de623
3 changed files with 16 additions and 9 deletions

View File

@ -1,4 +1,5 @@
MP_API_BASE_URL=https://ykt.youcan365.com MP_API_BASE_URL=https://ykt.youcan365.com
MP_CACHE_PREFIX=production MP_CACHE_PREFIX=production
MP_WX_APP_ID=production MP_WX_APP_ID=wx6ee11733526b4f04
MP_TIM_SDK_APP_ID=1600123876 MP_TIM_SDK_APP_ID=1600123876
MP_CORP_ID=wpLgjyawAA8N0gWmXgyJq8wpjGcOT7fg

View File

@ -315,7 +315,11 @@ const sendArticle = async (article) => {
try { try {
const { globalTimChatManager } = await import("@/utils/tim-chat.js"); const { globalTimChatManager } = await import("@/utils/tim-chat.js");
if (!globalTimChatManager || !globalTimChatManager.tim || !globalTimChatManager.isLoggedIn) { if (
!globalTimChatManager ||
!globalTimChatManager.tim ||
!globalTimChatManager.isLoggedIn
) {
uni.showToast({ uni.showToast({
title: "IM系统未就绪请重试", title: "IM系统未就绪请重试",
icon: "none", icon: "none",
@ -339,7 +343,9 @@ const sendArticle = async (article) => {
}; };
// //
const sendResult = await globalTimChatManager.sendCustomMessage(customMessageData); const sendResult = await globalTimChatManager.sendCustomMessage(
customMessageData
);
if (sendResult && sendResult.success) { if (sendResult && sendResult.success) {
console.log("✓ 文章消息已发送"); console.log("✓ 文章消息已发送");
uni.showToast({ uni.showToast({

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 23 KiB