Compare commits
No commits in common. "9af63de623354235e3b527dbd41af1382de03591" and "624b70fc86c529fad9d983f0ef5713abeb4e0a4c" have entirely different histories.
9af63de623
...
624b70fc86
@ -1,5 +1,4 @@
|
|||||||
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=wx6ee11733526b4f04
|
MP_WX_APP_ID=production
|
||||||
MP_TIM_SDK_APP_ID=1600123876
|
MP_TIM_SDK_APP_ID=1600123876
|
||||||
MP_CORP_ID=wpLgjyawAA8N0gWmXgyJq8wpjGcOT7fg
|
|
||||||
@ -315,11 +315,7 @@ const sendArticle = async (article) => {
|
|||||||
try {
|
try {
|
||||||
const { globalTimChatManager } = await import("@/utils/tim-chat.js");
|
const { globalTimChatManager } = await import("@/utils/tim-chat.js");
|
||||||
|
|
||||||
if (
|
if (!globalTimChatManager || !globalTimChatManager.tim || !globalTimChatManager.isLoggedIn) {
|
||||||
!globalTimChatManager ||
|
|
||||||
!globalTimChatManager.tim ||
|
|
||||||
!globalTimChatManager.isLoggedIn
|
|
||||||
) {
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "IM系统未就绪,请重试",
|
title: "IM系统未就绪,请重试",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
@ -343,9 +339,7 @@ const sendArticle = async (article) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 发送自定义消息
|
// 发送自定义消息
|
||||||
const sendResult = await globalTimChatManager.sendCustomMessage(
|
const sendResult = await globalTimChatManager.sendCustomMessage(customMessageData);
|
||||||
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: 23 KiB After Width: | Height: | Size: 89 KiB |
Loading…
x
Reference in New Issue
Block a user