找回密码
 立即注册

微信扫码登录

搜索
查看: 227|回复: 3

[技术探讨] 企业微信节点如何正确接收消息?

[复制链接]

23

主题

648

回帖

5036

积分

版主

积分
5036
金钱
4350
HASS币
40
发表于 2025-8-5 01:21:39 | 显示全部楼层 |阅读模式
本帖最后由 whxciotw 于 2025-8-5 01:24 编辑

各位好,请教下,我使用企业微信节点,该如何正确的接收企业微信群内发来的信息?
目前可以通过自己的vps代理,来正确的发送信息,但是却无法收到信息,节点输出的是undefined,该如何解决?
以下是我的节点配置、vps nginx配置、以及输出报错。

image.png
server {
    listen  443;

    server_name hachat.xxxxx.xxx;

        ssl_certificate /etc/nginx/ssl/*.xxxxx.xxx/full.pem;
        ssl_certificate_key /etc/nginx/ssl/*.xxxxx.xxx/key.pem;

        client_max_body_size 0;
        
    location / {
        proxy_pass https://qyapi.weixin.qq.com;
        proxy_redirect off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        # proxy_set_header Host $host;
        proxy_set_header X-Forwarded-proto https;
    }
    location /cgi-bin/gettoken {
      proxy_pass https://qyapi.weixin.qq.com;
    }
    location /cgi-bin/message/send {
      proxy_pass https://qyapi.weixin.qq.com;
    }
    location /cgi-bin/media/upload {
      proxy_pass https://qyapi.weixin.qq.com;
    }    
}

image.png
回复

使用道具 举报

9

主题

203

回帖

2847

积分

金牌会员

积分
2847
金钱
2635
HASS币
0
发表于 2025-8-5 10:26:37 | 显示全部楼层
还可以群消息那不是应用里的消息吗
回复

使用道具 举报

1

主题

139

回帖

3250

积分

论坛元老

积分
3250
金钱
3110
HASS币
0
发表于 2025-8-5 13:55:08 | 显示全部楼层
debug类型要写message.Content
回复

使用道具 举报

23

主题

648

回帖

5036

积分

版主

积分
5036
金钱
4350
HASS币
40
 楼主| 发表于 2025-8-5 21:35:25 | 显示全部楼层
baobaobuku 发表于 2025-8-5 13:55
debug类型要写message.Content

谢谢,确实是这个debug选错了~!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-8-16 15:00 , Processed in 0.049894 second(s), 8 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表