统一服务消息返回40037?
发布于 6 年前 作者 taozhou 4393 次浏览 来自 问答
$sendData = [
    "touser"=>$data['openid'],
    "mp_template_msg"=>[
        "appid"=>"",
        'template_id' => '此处是复制的,但是一直报错40037',
        'url' => 'https://www.baidu.com',//跳转链接
        'miniprogram' => [  //跳转小程序
            'appid' => '',
            'pagepath' => 'pages/index',
        ],
        'data' => [
            'first' => '您好,您已成功注册',
            'keyword1' => 'test',
            'keyword2' => '12314',
            'remark' => '感谢您的注册,有疑问请联系客服!',
        ],
    ]
];

w我使用公众号的模板api可以正常发送模板消息,更换成统一服务消息就报错了
2 回复
'data' => [
    "first" => [
        "value" => "您好,您已成功注册",
        "color" => "#173177"
    ],
    "keyword1" => [
        "value" => "您好,您已成功注册",
        "color" => "#173177"
    ],
    "keyword2" => [
        "value" => "您好,您已成功注册",
        "color" => "#173177"
    ],
    "remark" => [
        "value" => "感谢您的注册,有疑问请联系客服!",
        "color" => "#173177"
    ]
],

DATA中内容换成这样,还是不行
回到顶部