收藏
回答

微信订阅消息推送 ?

object(stdClass)#1 (2) {
  ["errcode"]=>
  int(40003)
  ["errmsg"]=>
  string(46) "invalid openid rid: 6085007f-63ab2011-03755853"
}


回答关注问题邀请回答
收藏

2 个回答

  • Summer✨
    Summer✨
    2021-04-25

    你好,40003不合法的 OpenID ,请开发者确认 OpenID (该用户)是否已关注公众号,或是否是其他公众号的 OpenID。查看你的请求是客服消息,请检查你调用信息。

    2021-04-25
    有用
    回复 1
    • 杰
      2021-04-26
      array(6) {
        ["code"]=>
        string(3) "200"
        ["status"]=>
        string(2) "OK"
        ["responseline"]=>
        string(15) "HTTP/1.0 200 OK"
        ["headers"]=>
        array(4) {
          ["Connection"]=>
          string(5) "close"
          ["Content-Type"]=>
          string(32) "application/json; encoding=utf-8"
          ["Date"]=>
          string(29) "Mon, 26 Apr 2021 06:52:16 GMT"
          ["Content-Length"]=>
          string(3) "115"
        }
        ["content"]=>
        string(115) "{"errcode":45015,"errmsg":"response out of time limit or subscription is canceled rid: 60866320-5f9e348b-23320dfe"}"
        ["meta"]=>
        string(259) "HTTP/1.0 200 OK
      Connection: close
      Content-Type: application/json; encoding=utf-8
      Date: Mon, 26 Apr 2021 06:52:16 GMT
      Content-Length: 115
      {"errcode":45015,"errmsg":"response out of time limit or subscription is canceled rid: 60866320-5f9e348b-23320dfe"}"
      }
      2021-04-26
      回复
  • 杰
    2021-04-26
    这个是小程序的 appid 和app secretsecret 。 这个小程序关联的 公众号, 这个用户也关注了公众号, 
    请求的是这个地址 https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token
     array(6) {
      ["code"]=>
      string(3) "200"
      ["status"]=>
      string(2) "OK"
      ["responseline"]=>
      string(15) "HTTP/1.0 200 OK"
      ["headers"]=>
      array(4) {
        ["Connection"]=>
        string(5) "close"
        ["Content-Type"]=>
        string(32) "application/json; encoding=utf-8"
        ["Date"]=>
        string(29) "Mon, 26 Apr 2021 01:45:30 GMT"
        ["Content-Length"]=>
        string(2) "75"
      }
      ["content"]=>
      string(75) "{"errcode":40003,"errmsg":"invalid openid rid: 60861b3a-521b1938-252bdf39"}"
      ["meta"]=>
      string(218) "HTTP/1.0 200 OK
    Connection: close
    Content-Type: application/json; encoding=utf-8
    Date: Mon, 26 Apr 2021 01:45:30 GMT
    Content-Length: 75
    
    {"errcode":40003,"errmsg":"invalid openid rid: 60861b3a-521b1938-252bdf39"}"
    

    }

    2021-04-26
    有用
    回复 4
    • 杰
      2021-04-26
      array(6) {
        ["code"]=>
        string(3) "200"
        ["status"]=>
        string(2) "OK"
        ["responseline"]=>
        string(15) "HTTP/1.0 200 OK"
        ["headers"]=>
        array(4) {
          ["Connection"]=>
          string(5) "close"
          ["Content-Type"]=>
          string(32) "application/json; encoding=utf-8"
          ["Date"]=>
          string(29) "Mon, 26 Apr 2021 06:52:16 GMT"
          ["Content-Length"]=>
          string(3) "115"
        }
        ["content"]=>
        string(115) "{"errcode":45015,"errmsg":"response out of time limit or subscription is canceled rid: 60866320-5f9e348b-23320dfe"}"
        ["meta"]=>
        string(259) "HTTP/1.0 200 OK
      Connection: close
      Content-Type: application/json; encoding=utf-8
      Date: Mon, 26 Apr 2021 06:52:16 GMT
      Content-Length: 115
      {"errcode":45015,"errmsg":"response out of time limit or subscription is canceled rid: 60866320-5f9e348b-23320dfe"}"
      }
      2021-04-26
      回复
    • Summer✨
      Summer✨
      2021-04-26
      你到底要调用什么下发什么呢?你这里请求是客服消息的接口,跟你说的订阅并不符合。你前面调用的信息显示40003不合法的 OpenID ,请开发者确认 OpenID (该用户)是否已关注公众号,或是否是其他公众号的 OpenID。检查是不是用户取关了或者获取了其他帐号的openid,openid在不同帐号下都是不同的,无法调用成功,45015是超过48小时,不在48小时互动期内不支持唤起客服消息。
      2021-04-26
      回复
    • 杰
      2021-04-26回复Summer✨
      下了订单给用户推送消息
      2021-04-26
      回复
    • Summer✨
      Summer✨
      2021-04-26回复
      你检查下是不是该用户取关了,或者你用了其他帐号下的用户的openid
      2021-04-26
      1
      回复
登录 后发表内容