GithubHelp home page GithubHelp logo

Comments (20)

soxft avatar soxft commented on July 24, 2024

今天也有一位用户 提到了这个问题, 可以看下 #3 这个

glob貌似是用来查找文件的吧, 这个不太清楚, 我自己测试 在 非docker环境下 使用php8是可以正常使用的

action 类似是 typecho 的 一个路由, 在Plugin.php 中注册后 可以直接请求 https://example.com/action/aaaa

from commenttomail.

soxft avatar soxft commented on July 24, 2024

查了一下 应该是 GLOB_BRACE 在某些操作系统中 是不能使用的
已经根据 #3 的建议改了下main分支

from commenttomail.

buzhangjiuzhou avatar buzhangjiuzhou commented on July 24, 2024

对了 那个 mailLog 的函数 是原先插件中, 可以设置发送后记录日志. 但是 我认为没什么用就移除了, 那个函数 忘记删了 不好意思

我在调试的时候又把它加回来了,哈哈哈

from commenttomail.

soxft avatar soxft commented on July 24, 2024

对了 那个 mailLog 的函数 是原先插件中, 可以设置发送后记录日志. 但是 我认为没什么用就移除了, 那个函数 忘记删了 不好意思

我在调试的时候又把它加回来了,哈哈哈

啊 我看了下你的分支, 弄混淆了😂

from commenttomail.

soxft avatar soxft commented on July 24, 2024

你可以直接在 sendMail 函数里调用 mailLog

from commenttomail.

soxft avatar soxft commented on July 24, 2024

typecho 的文档的确不全, 改的时候挺费劲

from commenttomail.

buzhangjiuzhou avatar buzhangjiuzhou commented on July 24, 2024

action 类似是 typecho 的 一个路由, 在Plugin.php 中注册后 可以直接请求 https://example.com/action/aaaa

我刚刚请求了一下我这里的链接,发现log有输出了。也就是说,很可能Action.php是正常的。不过有报错就是好情况,至少我知道怎么调试。

但是还需要解决的问题是我正常评论为什么没有发出去这个链接。

from commenttomail.

soxft avatar soxft commented on July 24, 2024

得定时访问 https://blog.example.com/action/comment-to-mail?do=deliverMail&key={KEY}
在插件设置底部可以看到

报错的话, config.ini.php 中 可以设置 define('__TYPECHO_DEBUG__', true); 来开启debug 查看详细错误

from commenttomail.

buzhangjiuzhou avatar buzhangjiuzhou commented on July 24, 2024

得定时访问 https://blog.example.com/action/comment-to-mail?do=deliverMail&key={KEY} 在插件设置底部可以看到

报错的话, config.ini.php 中 可以设置 define('__TYPECHO_DEBUG__', true); 来开启debug 查看详细错误

?意思是需要我定期访问这个链接邮件才能发出去吗?我还以为是设置好了,它就可以自动检测到有评论,然后发送邮件。我之前用的LoveKKComment就是这样的,但是好久没更新了,在我更新typecho之后就不能用了。

from commenttomail.

soxft avatar soxft commented on July 24, 2024

对的, LoveKKComment应该是同步发送吧, 会影响评论速度
这个采用的是异步推送, 对访客体验好点

from commenttomail.

buzhangjiuzhou avatar buzhangjiuzhou commented on July 24, 2024

对的, LoveKKComment应该是同步发送吧, 会影响评论速度 这个采用的是异步推送, 对访客体验好点

这样啊,我先把这个异步的调通之后再看看是否要改成同步的,我比较喜欢同步式的,就像GitHub这个评论一样。

from commenttomail.

soxft avatar soxft commented on July 24, 2024

对的, LoveKKComment应该是同步发送吧, 会影响评论速度 这个采用的是异步推送, 对访客体验好点

这样啊,我先把这个异步的调通之后再看看是否要改成同步的,我比较喜欢同步式的,就像GitHub这个评论一样。

嗯嗯

from commenttomail.

buzhangjiuzhou avatar buzhangjiuzhou commented on July 24, 2024

对的, LoveKKComment应该是同步发送吧, 会影响评论速度 这个采用的是异步推送, 对访客体验好点

这样啊,我先把这个异步的调通之后再看看是否要改成同步的,我比较喜欢同步式的,就像GitHub这个评论一样。

嗯嗯

感谢!我大概搞清楚了调试的思路了!

from commenttomail.

buzhangjiuzhou avatar buzhangjiuzhou commented on July 24, 2024

Action.php第204行,$this->_cfg->status 是NULL怎么解决?可以跳过吗?还是前面的设置有问题?

image

from commenttomail.

soxft avatar soxft commented on July 24, 2024

这个status 貌似是后台的

image

这个设置, 理论上不应该为空啊, 可以用双问号来指定当status为空时的值

from commenttomail.

buzhangjiuzhou avatar buzhangjiuzhou commented on July 24, 2024

这个status 貌似是后台的

image

这个设置, 理论上不应该为空啊, 可以用双问号来指定当status为空时的值

是我的问题,我以为这里的设置是比如有人发了评论,我给他通过之后发邮件提醒他,看了你的回复我发现这里其实是决定那一类邮件要发,我勾选了第一个之后就成功收到了邮件。
image

感谢你的帮助,我一会儿整理一下代码,然后派PR。

from commenttomail.

soxft avatar soxft commented on July 24, 2024

这个, 我个人还是觉得 异步的话体验比较好, 同步的话就新增一个分支吧

from commenttomail.

buzhangjiuzhou avatar buzhangjiuzhou commented on July 24, 2024

这个, 我个人还是觉得 异步的话体验比较好, 同步的话就新增一个分支吧

好的!

from commenttomail.

soxft avatar soxft commented on July 24, 2024

我感觉你博客文章写的很好 !😂

from commenttomail.

buzhangjiuzhou avatar buzhangjiuzhou commented on July 24, 2024

我感觉你博客文章写的很好 !😂

哈哈哈哈哈,过奖过奖,我还一直想着别人会不会觉得我无病呻吟,不过考虑到我博客没几个人看,就淡定了。

from commenttomail.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.