uniformMessage.send
accesstoken已验证是最新的,没有问题
目前尝试过两种方案,刚开始使用的一个认证已到期的订阅号关联的小程序,不行,后来换成已认证的服务号关联小程序,推送还是不行,请求url,参数以及结果如下:
2020-12-07 13:19:19----请求url: https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token=39_7mLravb9tukpRwBR28ESYFzszdq0pW9IXQ_Db-cBxDqrtRClTm8XSjWYkHqAb61t7C1_ExSPYxDm7h6zKd6MQU49LDT1Mtoq1BBSAeO18eAiSqUMZeRJSXlmLVnRkuC2Jub39OwEMZmjAz2YNXYdAIAJTU
2020-12-07 13:19:19----请求参数: array (
'access_token' => '39_7mLravb9tukpRwBR28ESYFzszdq0pW9IXQ_Db-cBxDqrtRClTm8XSjWYkHqAb61t7C1_ExSPYxDm7h6zKd6MQU49LDT1Mtoq1BBSAeO18eAiSqUMZeRJSXlmLVnRkuC2Jub39OwEMZmjAz2YNXYdAIAJTU',
'touser' => 'oTofH5X6sbf1br01n3TdFAvheawU',
'mp_template_msg' =>
stdClass::__set_state(array(
'appid' => 'wx77288d62c630de52',
'template_id' => 's5--0e5MPGO008eIkw3bpqlflUL6xdOUXiNHAqxC8g0',
'url' => 'www.baidu.com',
'miniprogram' =>
stdClass::__set_state(array(
'appid' => '1wx5d59065230502c01',
'pagepath' => 'pages/homepage/homepage',
)),
'data' =>
stdClass::__set_state(array(
'first' =>
stdClass::__set_state(array(
'value' => '销售部长发布了新留言,请查看',
'color' => '#000000',
)),
'keyword1' =>
stdClass::__set_state(array(
'value' => '11111',
'color' => '#898989',
)),
'keyword2' =>
stdClass::__set_state(array(
'value' => '2020-12-07 13:19:19',
'color' => '#898989',
)),
'remark' =>
stdClass::__set_state(array(
'value' => '',
'color' => '#898989',
)),
)),
)),
)
2020-12-07 13:19:19----推送结果: array (
'errcode' => 48001,
'errmsg' => 'api unauthorized rid: 5fcdbb57-3e5f0a33-60ff39c1',
)
谁的access_token?