网站暂时无法访问根据工信部相关法律规定,网站需要备案才能接入腾讯云中国境内云资源 法律依据:《非经营性互联网信息服务备案管理办法》
同样的域名在浏览器微信都能访问,但在小程序里(开发者工具,体验版小程序)都不能访问,请问怎么解决?[图片] 上面是开发者工具请求的请求信息情况。 小程序已经备案,request也已经设置好
1天前用postman发如下格式JSON试试看 { "touser": "XXXXXXX", "data": { "thing1": { "value": "露营车" }, "amount2": { "value": "200.00" }, "thing3": { "value": "测试推送消息" }, "time5": { "value": "2025-07-31 08:58:14" } }, "template_id": "XXXXXXXXX", "miniprogram_state": "formal", "page": "pages/index/index" }
个人小程序和企业小程序有什么不同吗?请问,个人小程序和企业小程序有什么不同吗? 主要是功能上,谁了解说一下呗。
1天前在swoole环境中,一般都会安装其他适配 guzzle handler 的包,不清楚你都装了什么包,最好是给出你的composer.json文件配置,默认的guzzle可以在请求体上调整/增加expect 参数来控制 100 continue的请求/响应应答,参考文档:https://docs.guzzlephp.org/en/stable/request-options.html#expect 代码例如: $instance ->chain('v3/merchant/media/upload') ->post([ 'expect' => 1024 * 1024 * 20, 'body' => $media->getStream(), 'headers' => [ 'Content-Type' => $media->getContentType(), ], ]);
【微信支付服务商】图片上传API请求异常$instance = Builder::factory([ 'mchid' => $merchantId, 'serial' => $merchantCertificateSerial, 'privateKey' => $merchantPrivateKeyInstance, 'certs' => [ $platformCertificateSerial => $platformPublicKeyInstance ], ]); $filePath = 'https://wxiaoquan-file.oss-cn-hangzhou.aliyuncs.com/store/comment/65378202507291150069590.jpeg'; $filePath = root_path() . 'public/uploads/system/00a8f202104291705362017.jpg'; try { $media = new MediaUtil($filePath); $resp = $instance ->chain('/v3/merchant/media/upload') ->post([ 'body' => $media->getStream(), 'headers' => [ 'Content-Type' => $media->getContentType(), 'Wechatpay-Serial' => $platformCertificateSerial ], 'debug' => true, ]); var_dump($resp); echo (string) $resp->getBody(), PHP_EOL; } catch (\Exception $e) { echo '进行异常捕获并进行错误判断处理-=-', PHP_EOL; // 进行异常捕获并进行错误判断处理 echo $e->getMessage(), PHP_EOL; if ($e instanceof \GuzzleHttp\Exception\RequestException && $e->hasResponse()) { $r = $e->getResponse(); echo $r->getStatusCode() . ' ' . $r->getReasonPhrase(), PHP_EOL; echo (string) $r->getBody(), PHP_EOL, PHP_EOL, PHP_EOL; } echo $e->getTraceAsString(), PHP_EOL; } 结果: 进行异常捕获并进行错误判断处理-=- The response's Headers incomplete, must have(`Wechatpay-Nonce`, `Wechatpay-Serial`, `Wechatpay-Signature` and `Wechatpay-Timestamp`). 100 Continue 配置应该没错,其他接口都没有问题的,另一个项目上传图片和这个代码一样是可以用的
2天前这个接口,请求入参不接受nonce_str,你的入参给多了。。。
调用订单附加信息查询接口失败,返回签名验证失败[图片] 签名在(签名校验工具)中校验是成功的,但调用接口的时候返回失败 url:https://api.mch.weixin.qq.com/cgi-bin/mch/customs/customdeclareorder 入参: <xml> <appid>wx14daa5fc1b49a9e9</appid> <customs>SHANGHAI</customs> <mch_customs_no>3122468629</mch_customs_no> <mch_id>1647473848</mch_id> <order_fee>59</order_fee> <out_trade_no>1744866506964211</out_trade_no> <transaction_id>4200002680202507119160204908</transaction_id> <transport_fee>0</transport_fee> <fee_type>CNY</fee_type> <nonce_str>1add1a30ac87aa2db72f57a2375d8fec</nonce_str> <action_type>ADD</action_type> <sign>1003E67A8DA9071F7BFD34FD6404EE30</sign> </xml> 返回 <xml> <return_code> <![CDATA[FAIL]]> </return_code> <return_msg> <![CDATA[签名验证失败]]> </return_msg> </xml>
07-14微信支付APIv3充分复用了HTTP状态码来反馈接口响应状态,PHP SDK readme上有写,对于同步代码,需要用try {} catch(){} 语句包裹,异步可以用otherwise捕获,例如: try { $response = $instance->chain('v3/fund-app/mch-transfer/transfer-bills')->post([ 'json' => [ 'appid' => 'wxf636efh567hg4356', 'out_bill_no' => 'plfk2020042013', 'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy', 'user_name' => '757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45', 'transfer_amount' => 400000, 'transfer_remark' => '2020年4月报销', 'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php', 'user_recv_perception' => '现金奖励', 'transfer_scene_id' => '1000', 'transfer_scene_report_infos' => [[ 'info_type' => '活动名称', 'info_content' => '注册会员有礼', ],], ], 'headers' => [ 'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000', ], ]); print_r(json_decode((string) $response->getBody(), true)); } catch (\Exception $e) { // 进行错误处理 echo $e->getMessage(), PHP_EOL; if ($e instanceof \GuzzleHttp\Exception\RequestException && $e->hasResponse()) { $r = $e->getResponse(); echo $r->getStatusCode() . ' ' . $r->getReasonPhrase(), PHP_EOL; echo (string) $r->getBody(), PHP_EOL, PHP_EOL, PHP_EOL; } echo $e->getTraceAsString(), PHP_EOL; } 异步方式 $instance->chain('v3/fund-app/mch-transfer/transfer-bills')->postAsync([ 'json' => [ 'appid' => 'wxf636efh567hg4356', 'out_bill_no' => 'plfk2020042013', 'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy', 'user_name' => '757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45', 'transfer_amount' => 400000, 'transfer_remark' => '2020年4月报销', 'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php', 'user_recv_perception' => '现金奖励', 'transfer_scene_id' => '1000', 'transfer_scene_report_infos' => [[ 'info_type' => '活动名称', 'info_content' => '注册会员有礼', ],], ], 'headers' => [ 'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000', ], ]) ->then(static function(\Psr\Http\Message\ResponseInterface $response) { print_r(json_decode((string) $response->getBody(), true)); }) ->otherwise(static function($e) { // 异常错误处理 echo $e->getMessage(), PHP_EOL; if ($e instanceof \GuzzleHttp\Exception\RequestException && $e->hasResponse()) { $r = $e->getResponse(); echo $r->getStatusCode() . ' ' . $r->getReasonPhrase(), PHP_EOL; echo (string) $r->getBody(), PHP_EOL, PHP_EOL, PHP_EOL; } echo $e->getTraceAsString(), PHP_EOL; }); ->wait(); 代码可以从 https://wechatpay.im/openapi/v3/fund-app/mch-transfer/transfer-bills CV
微信商家转账接口 报备场景信息 不填还能正常提示错误信息,填了直接403 ?$resp = $instance->chain('v3/fund-app/mch-transfer/transfer-bills')->post(['json' => [ 'appid' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'out_bill_no' => 'TEST'.date('YmdHis').rand(1000,9999), 'transfer_scene_id' => '1005', 'openid' => $touser, 'transfer_amount' => 1000, 'transfer_remark' => '转账测试', 'notify_url' => 'https://www.xxxx.net', 'user_recv_perception' => '劳务报酬', 'transfer_scene_report_infos' => [ [ 'info_type' => '岗位类型', 'info_content' => '分销商', ], [ 'info_type' => '报酬说明', 'info_content' => '佣金提现', ] ], ]]); Client error: `POST https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills` resulted in a `403 Forbidden` response
07-08平台收付通产生的二级商户号,只能用「微信支付商家助手」小程序,pc端不支持查看其他功能
找不到相关入口?找不到产品中心 管理中心入口 就只有一个账户中心 和数据中心
07-06微信云托管默认就给了openid,这样你就可以用code换手机号的动作,一次绑定 http://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloudrun/src/development/call/mini.html
使用wx.login()给code,如何才能同时获取到手机号和openid?我有一个微信登录表,需要获取手机号和openid存起来做一个绑定。 code只能使用一次,前端传给我wx.login()获取到的code,使用code获取手机号成功了,再使用这个code获取openid的时候就提示“invalid code”。 如何才能够前端只传一次code,后端同时把获取手机号和openid这两件事情同时做了,有对应的接口可以一次性获取这两个信息吗?
07-04[图片] see https://wechatpay.im/openapi/v3/merchant-service/images/%7Bmedia_id%7D
通过投诉详情接口拉取到的投诉信息,其中用户上传的图片url无法正常访问通过投诉详情接口拉取到的投诉信息,其中用户上传的图片url无法正常访问,会显示加载失败,例如:https://api.mch.weixin.qq.com/v3/merchant-service/images/ChsyMDAwMDAwMjAyNTA3MDEyMTAzMDUyNDU3ODAYACCbl5LDBigBMAE4AQ%3D%3D
07-03see https://wechatpay.im/openapi/v3/profitsharing/orders $response = $instance->chain('v3/profitsharing/orders')->post([ 'json' => [ 'sub_mchid' => '1900000109', 'appid' => 'wx8888888888888888', 'sub_appid' => 'wx8888888888888889', 'transaction_id' => '4208450740201411110007820472', 'out_order_no' => 'P20150806125346', 'receivers' => [[ 'type' => 'MERCHANT_ID', 'account' => '86693852', 'name' => 'hu89ohu89ohu89o', 'amount' => 888, 'description' => '分给商户A', ],], 'unfreeze_unsplit' => true, ], 'headers' => [ 'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000', ], ]); print_r(json_decode((string) $response->getBody(), true));
发起分帐 /v3/profitsharing/orders 严格按照文档组成的参数,但还是报错"sub_mchid"=>"1601114161", "appid"=>"wx117a0234324f60c", "transaction_id"=>"4200002xxxxxx690299587", //微信订单号 "out_order_no"=>"104", //商户分账单号 "receivers"=>[ [ "type"=>"PERSONAL_OPENID", //MERCHANT_ID:商户号 2、PERSONAL_OPENID:个人openid(由父商户APPID转换得到) 3、PERSONAL_SUB_OPENID: 个人sub_openid(由子商户APPID转换得到) "account"=>"oGUbk5Xkm91XL_gb-urq8JPrjdr8", "amount"=>'1', "description"=>"分给oGUbk5Xkm91XL_gb-urq8JPrjdr8" ] ], "unfreeze_unsplit"=>true,
06-24商家券,顾名思义,提供给商家托管的一种原子化的券的解决方案,一次核销多张,就掉多次接口就能实现。
关于如何一次性核销多张卡券的问题?订单支持多张卡券下单,如何一次核销多张卡券 下面接口应该是一次只能传一个卡券code ,有传多个code核销的接口吗 或者有什么解决办法 请求方式:【POST】[代码]/v3/marketing/busifavor/coupons/use[代码] 用的是商家券
06-20