From 6ed2a4c2a701d93599063a3101f4d4a05603b211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E5=8C=97=E2=80=B3?= <9778566@qq.com> Date: Sun, 26 Nov 2023 11:58:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug~?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...256\232\346\227\266\347\255\276\345\210\260.lua" | 13 ++----------- "CronSchedules/\346\257\217\346\227\24560s.lua" | 1 - Plugins/lib/Fans.lua | 13 +------------ ...33\276-\344\271\260\345\256\266\347\247\200.lua" | 2 +- 4 files changed, 4 insertions(+), 25 deletions(-) diff --git "a/CronSchedules/\345\256\232\346\227\266\347\255\276\345\210\260.lua" "b/CronSchedules/\345\256\232\346\227\266\347\255\276\345\210\260.lua" index ae35221..de52672 100644 --- "a/CronSchedules/\345\256\232\346\227\266\347\255\276\345\210\260.lua" +++ "b/CronSchedules/\345\256\232\346\227\266\347\255\276\345\210\260.lua" @@ -4,7 +4,6 @@ local Api = require("coreApi") local json = require("json") local http = require("http") local mysql = require("mysql") -local utils = require("Utils") local Go = require("Fans") function auto_sign(CurrentQQ, task) @@ -17,22 +16,14 @@ function auto_sign(CurrentQQ, task) end --发送群消息 -function sendGroupMsg(CurrentQQ, ToUin, FileId, FileMd5, FileSize) +function sendGroupMsg(CurrentQQ, ToUin, Content) local request = { CgiCmd = "MessageSvc.PbSendMsg", CgiRequest = { ToUin = ToUin, ToType = 2, + Content = Content } } - if FileMd5 ~= nil then - request.CgiRequest.Images = { - { - FileId = FileId, - FileMd5 = FileMd5, - FileSize = FileSize - } - } - end return Api.Api_MagicCgiCmd(CurrentQQ, request) end \ No newline at end of file diff --git "a/CronSchedules/\346\257\217\346\227\24560s.lua" "b/CronSchedules/\346\257\217\346\227\24560s.lua" index 4a67d77..abde3b3 100644 --- "a/CronSchedules/\346\257\217\346\227\24560s.lua" +++ "b/CronSchedules/\346\257\217\346\227\24560s.lua" @@ -4,7 +4,6 @@ local Api = require("coreApi") local json = require("json") local http = require("http") local mysql = require("mysql") -local utils = require("Utils") local Go = require("Fans") function meiri60s(CurrentQQ, task) diff --git a/Plugins/lib/Fans.lua b/Plugins/lib/Fans.lua index 52ce3b6..38ce534 100644 --- a/Plugins/lib/Fans.lua +++ b/Plugins/lib/Fans.lua @@ -241,18 +241,7 @@ function Fans.openGroupRedBag(CurrentQQ, data) return Api.Api_MagicCgiCmd(CurrentQQ, { CgiCmd = "OpenREDBAG", CgiRequest = { - Wishing = data.MsgBody.RedBag.Wishing, - Des = data.MsgBody.RedBag.Des, - RedType = data.MsgBody.RedBag.RedBag, - Listid = data.MsgBody.RedBag.Listid, - Authkey = data.MsgBody.RedBag.Authkey, - Channel = data.MsgBody.RedBag.Channel, - StingIndex = data.MsgBody.RedBag.StingIndex, - TransferMsg = data.MsgBody.RedBag.TransferMsg, - Token_17_2 = data.MsgBody.RedBag.Token_17_2, - Token_17_3 = data.MsgBody.RedBag.Token_17_3, - FromUin = data.MsgBody.RedBag.FromUin, - FromType = data.MsgBody.RedBag.FromType + RedBag = data.MsgBody.RedBag } }) end diff --git "a/Plugins/\346\266\251\345\233\276-\344\271\260\345\256\266\347\247\200.lua" "b/Plugins/\346\266\251\345\233\276-\344\271\260\345\256\266\347\247\200.lua" index 6f4848f..766294c 100644 --- "a/Plugins/\346\266\251\345\233\276-\344\271\260\345\256\266\347\247\200.lua" +++ "b/Plugins/\346\266\251\345\233\276-\344\271\260\345\256\266\347\247\200.lua" @@ -14,7 +14,7 @@ function ReceiveGroupMsg(CurrentQQ, data) if string.find(data.MsgBody.Content, "!买家秀") then local res = Go.uploadRes(CurrentQQ, 2, 'https://api.uomg.com/api/rand.img3') - sendGroupMsg(CurrentQQ, 79379938, "请鉴赏 15s后销毁该条消息", res.ResponseData.FileId, res.ResponseData.FileMd5, res.ResponseData.FileSize) + sendGroupMsg(CurrentQQ, data.MsgHead.FromUin, "请鉴赏 15s后销毁该条消息", res.ResponseData.FileId, res.ResponseData.FileMd5, res.ResponseData.FileSize) end return 1 end