logo NodeSeekbeta

保姆级教程:从零开始,搭建一个属于你自己的微信消息推送服务

  • 我记得企业微信应用要可信IP,但是企业群机器人是不需要的,而且消息可以同步到微信。
    另外免费Wxpusher消息推送也挺好用的

  • 哪里抄的文章?你说的什么可信ip对mjj是问题吗?哪个mjj手里没一大堆吃灰的机器(ip)?

  • PixPin_2025-07-20_19-00-31.png
    PixPin_2025-07-20_18-59-30.png
    PixPin_2025-07-20_19-10-11.png
    师傅这是你的另一个项目订阅提醒的SubsTracker部署在cloudflare上的worker page上,然后使用配置好的企业微信自建应用推送url,无法进行推送,但是云服务器直接发送这段请求可以发送,试着把woker解析到的两个域名加入到可信IP中也无法解决,有点没有头绪问题出在哪 xhj027 麻烦再指教一下

  • @陌生人 #132 发布于2025/7/20 18:58:18
    哪里抄的文章?你说的什么可信ip对mjj是问题吗?哪个mjj手里没一大堆吃灰的机器(ip)?

    这是github上的原作者 xhj030

  • @封景 #133 在SubsTracker cf workers里好像可以看到日志,或者全部保持默认,只填调用地址试试. xhj011

  • 厉害,收藏一下 ac01

  • 使用默认也是不行,并且也把cfwork的域名放到白名单中了,欧那个SubsTracker,是使用你github里的项目deploy to cloudflare一键部署进去的,没有改东西 xhj027

    这是发送的请求

    {
      "source": {
        "message": "[企业微信应用通知] 开始发送通知到: http://47.79.***.***:12121/api/notify/438f2082-******-4313-af28-******",
        "$cloudflare": {
          "$metadata": {
            "id": "01K0NPRKB46BYMJWN5FV24X1XE",
            "type": "cf-worker",
            "messagePattern": "[企业微信应用通知] 开始发送通知到: http://47.79.***.***:12121/api/notify/<UUID>"
          }
        }
      },
      "dataset": "",
      "timestamp": "2025-07-21T05:19:34.756Z",
      "$workers": {
        "event": {
          "request": {
            "url": "https://tzhi.******.xx.kg/api/test-notification",
            "method": "POST",
            "path": "/api/test-notification"
          }
        },
        "outcome": "ok",
        "scriptName": "subscription-manager",
        "eventType": "fetch",
        "executionModel": "stateless",
        "scriptVersion": {
          "id": "e052ebd6-e708-47ed-91b3-174f05dbf908"
        },
        "truncated": false,
        "requestId": "96283e81f8658505"
      },
      "$metadata": {
        "id": "01K0NPRKB46BYMJWN5FV24X1XE",
        "requestId": "96283e81f8658505",
        "trigger": "POST /api/test-notification",
        "service": "subscription-manager",
        "statusCode": 200,
        "message": "[企业微信应用通知] 开始发送通知到: http://47.79.***.***:12121/api/notify/438f2082-******-4313-af28-******",
        "url": "https://tzhi.******.xx.kg/api/test-notification",
        "account": "0f77348b0a34d18580917a07f56f04be",
        "provider": "cloudflare",
        "type": "cf-worker",
        "fingerprint": "421af30c1e19f1191bcaaa593541c53b",
        "origin": "fetch",
        "messageTemplate": "[企业微信应用通知] 开始发送通知到: http://47.79.***.***:12121/api/notify/<UUID>",
        "now": null
      },
      "links": []
    }
    

    这是响应的数据

    {
      "source": {
        "message": "[企业微信应用通知] 发送结果: 403 error code: 1003",
        "$cloudflare": {
          "$metadata": {
            "id": "01K0NPRKB64AX6KJESQ1K969Y0",
            "type": "cf-worker",
            "messagePattern": "[企业微信应用通知] 发送结果: 403 error code: 1003"
          }
        }
      },
      "dataset": "",
      "timestamp": "2025-07-21T05:19:34.758Z",
      "$workers": {
        "event": {
          "request": {
            "url": "https://tzhi.***.xx.kg/api/test-notification",
            "method": "POST",
            "path": "/api/test-notification"
          }
        },
        "outcome": "ok",
        "scriptName": "subscription-manager",
        "eventType": "fetch",
        "executionModel": "stateless",
        "scriptVersion": {
          "id": "e052ebd6-e708-47ed-91b3-174f05dbf908"
        },
        "truncated": false,
        "requestId": "96283e81f8658505"
      },
      "$metadata": {
        "id": "01K0NPRKB64AX6KJESQ1K969Y0",
        "requestId": "96283e81f8658505",
        "trigger": "POST /api/test-notification",
        "service": "subscription-manager",
        "statusCode": 200,
        "message": "[企业微信应用通知] 发送结果: 403 error code: 1003",
        "url": "https://tzhi.***.xx.kg/api/test-notification",
        "account": "0f77348b0a34d18580917a07f56f04be",
        "provider": "cloudflare",
        "type": "cf-worker",
        "fingerprint": "421af30c1e19f1191bcaaa593541c53b",
        "origin": "fetch",
        "messageTemplate": "[企业微信应用通知] 发送结果: 403 error code: 1003",
        "now": null
      },
      "links": []
    }
    
  • 学习了!

  • bd

  • @封景 #137 这里面已经提示错误码了,可以搜一下看是哪里错误了.[企业微信应用通知] 发送结果: 403 error code: 1003

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

📈用户数目📈

目前论坛共有72280位seeker

🎉欢迎新用户🎉