mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
refactor: mface url
This commit is contained in:
parent
7ce195b68e
commit
a1bb6cc1b1
@ -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;
|
||||
|
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user