- 订阅消息通知,每次提交都说 数据格式不对
https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/mp-message-management/subscribe-message/sendMessage.html 调用接口: https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=ACCESS_TOKEN 上面的 ACCESS_TOKEN 已经让我换成实际中的 token 字段串了没问题 //模板 data $tmpData = [ 'thing1' => ['value'=>$buyUserInfo->user_name], 'thing2' => ['value'=>$productInfo->product_name], 'amount3' => ['value'=>$shopOrderModel->order_total_real_price], 'character_string4' => ['value'=>$shopOrderModel->order_sn], 'thing6' => ['value'=>$shopOrderModel->order_note] ]; $postData = [ 'touser' => $shopUserConfigModel->wx_open_id, 'template_id' => 'AIaIS2CYJKSVSIEhLXa4w7TCzzhgf7utttE0d_2UUic', 'page' => 'index', "miniprogram_state" =>"developer", 'lang' => 'zh_CN', 'data' => $tmpData, ]; 参数都是按文档上要求写的 //同步请示 $client = new Client(); $res = $client->post($postUrl,['form_params'=>$postData]); 接口返回: "errcode": 47001, "errmsg": "data format error rid: 663c7ee6-027f88e7-0d0b7d1b"
05-09 - H5页面微信支付成功,但没有收到异步通知,查不到原因怎么办?
微信支付单号:20210613-132902-1 现在遇到的问题是在手机页面支付成功,异步通知地址收不到任何信息(异步通知文件里面有log记录功能,没有收到任何的请求,nginx日志也没有,防火墙未限制) 微信支付商户号:1563168221 php ,异步通知地址格式 https://m.qmz123.com/gongju/wxpay/notifyUrl,异步通知地址在浏览器正常访问
2021-06-13