Coder Social home page Coder Social logo

Comments (4)

maxincai avatar maxincai commented on August 24, 2024
  • api-server 使用什么方式启动的? nohup 启动的话,检查一下,api-server目录有没有xxx.out 文件,看此文件有没有错误信息。

  • 将.env文件中的APP_ENV改为dev,重新启动服务 php bin/hyperf.php start 观察命令行输出是否有错误信息;

  • 会话存档是5分钟获取一次,可以看看是否有延迟。

from mochat.

djmax2010 avatar djmax2010 commented on August 24, 2024
  • api-server 使用什么方式启动的? nohup 启动的话,检查一下,api-server目录有没有xxx.out 文件,看此文件有没有错误信息。
  • 将.env文件中的APP_ENV改为dev,重新启动服务 php bin/hyperf.php start 观察命令行输出是否有错误信息;
  • 会话存档是5分钟获取一次,可以看看是否有延迟。

感谢回答,我是用nohup启动api-server的,xxx.out 文件有是提示9501端口占用,这个已经解决了,.evn配置文件改为dev后, 我发现 ⁨api-server⁩/app⁩/⁨Logic⁩/⁨WorkMessage⁩/Store.php中$chatData一直返回空

public function handle(int $corpId, int $limit = 100): void {
... 
$chatData = $this->sdk->getDecryptChatData($msgIndex, $limit);
// $chatData 返回空
...
}

我打印出了debug,代码和信息如下
image

image

并确认 corpid,secret,版本号,可信ip与微信后台配置的一致。是还有什么地方设置的不对吗?
image
image
image

from mochat.

maxincai avatar maxincai commented on August 24, 2024

你进一步增加日志到SDK里试一下呢,从目前的日志来看都没啥问题。

from mochat.

maxincai avatar maxincai commented on August 24, 2024

长时间无人回复,关闭处理

from mochat.

Related Issues (20)

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.