refactor: mface url

This commit is contained in:
linyuchen 2024-04-26 00:16:36 +08:00
parent 7ce195b68e
commit a1bb6cc1b1
2 changed files with 5 additions and 1 deletions

View File

@ -217,7 +217,8 @@ export class OB11Constructor {
// 取md5的前两位
const dir = md5.substring(0, 2);
// 获取组装url
const url = `https://p.qpic.cn/CDN_STATIC/0/data/imgcache/htdocs/club/item/parcel/item/${dir}/${md5}/300x300.png?max_age=31536000`;
// const url = `https://p.qpic.cn/CDN_STATIC/0/data/imgcache/htdocs/club/item/parcel/item/${dir}/${md5}/300x300.gif?max_age=31536000`;
const url = `https://gxh.vip.qq.com/club/item/parcel/item/${dir}/${md5}/raw300.gif`;
message_data['data']['url'] = url;
} else if (element.markdownElement) {
message_data['type'] = OB11MessageDataType.markdown;

View File

@ -41,6 +41,9 @@ napCatCore.addLoginSuccessCallback(() => {
postLoginStatus();
const msgListener = new MsgListener();
msgListener.onRecvMsg = (msg) => {
// console.log(JSON.stringify(Array.from(msg[0].msgAttrs.values())));
// napCatCore.service.msg.kernelService?.getMsgsByMsgId(msg[0].msgId, 20).then(res=>console.log(res));
// console.log("onRecvMsg", msg)
};
// napCatCore.getGroupService().getGroupExtList(true).then((res) => {