Skip to content

Commit

Permalink
Update starter/RobotCallbackAspect
Browse files Browse the repository at this point in the history
  • Loading branch information
kosaka-bun committed Jan 22, 2025
1 parent f8f95e3 commit 971495b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ data class OnebotProperties(
*
* 发送图片或文件前,需要先将InputStream中的数据写出到文件中,才能被OneBot服务使用。
*/
var cachePath: String = Path(FileUtils.getMainClasspath(), "cache").run {
var cachePath: String = Path(FileUtils.getMainClasspath(), "qqrobot/onebot/cache").run {
normalize().toString()
}
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public TesterRobotMessage typedTransform(Long group, long qq, RobotMultipartMess
for(RobotMessage<?> part : message.messageList) {
Object content = part.getContent();
if(content instanceof String) {
if(part.getContent() == null || part.getContent().equals("")) continue;
if(part.getContent().equals("")) continue;
testerRobotMessage.add(TesterRobotMessage.PartType.TEXT, (String) part.getContent());
}
if(content instanceof RobotMessageTypes.At) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class RobotCallbackAspect {

@Before(
"execution(* de.honoka.qqrobot.starter.component.DefaultFrameworkCallback.onPrivateMsg" +
"(long, de.honoka.qqrobot.framework.api.model.RobotMultipartMessage)" +
"(long, de.honoka.qqrobot.framework.api.message.RobotMultipartMessage)" +
")"
)
public void logPrivateMessage(JoinPoint joinPoint) {
Expand All @@ -32,7 +32,7 @@ public void logPrivateMessage(JoinPoint joinPoint) {

@Before(
"execution(* de.honoka.qqrobot.starter.component.DefaultFrameworkCallback.onGroupMsg" +
"(long, long, de.honoka.qqrobot.framework.api.model.RobotMultipartMessage)" +
"(long, long, de.honoka.qqrobot.framework.api.message.RobotMultipartMessage)" +
")"
)
public void logGroupMessage(JoinPoint joinPoint) {
Expand Down

0 comments on commit 971495b

Please sign in to comment.