不要看示例json,对照着请求参数表每个参数不能少,参数类型也必须对
为什么调用支付云函数返回“参数格式校验错误”?为什么调用支付云函数返回如下信息: {errMsg: "cloud.callFunction:ok", result: {…}, requestID: "63e7fe26-b816-4680-b73e-047614151bcc"} errMsg: "cloud.callFunction:ok" requestID: "63e7fe26-b816-4680-b73e-047614151bcc" result: errCode: 0 errMsg: "cloudPay.unifiedOrder:ok" returnCode: "FAIL" returnMsg: "参数格式校验错误" __proto__: Object __proto__: Object
01-16不要看示例json,对照着请求参数表每个参数不能少,参数类型也必须对
云托管微信支付得到"参数格式校验错误",问题在哪里?云托管的后端发起支付,得到错误 {"errcode":0,"errmsg":"ok","respdata":{"return_code":"FAIL","return_msg":"参数格式校验错误"}} 后端 php 代码如下(curl部分来自 TCloudBase/wxcloudrun-pay-demo ) public function directPay() { $url = 'http://api.weixin.qq.com/_/pay/unifiedOrder'; $hdr = Request::header(); $data = array( "out_trade_no" => time(), "body" => "测试支付", "total_fee" => 50, "openid" => $hdr["x-wx-openid"], "env_id" => $hdr["x-wx-env"], "spbill_create_ip" => $hdr["x-original-forwarded-for"], "sub_mch_id" => "151195123", "callback_type" => 2, "container" => array( "service" => $hdr["x-wx-service"], "path" => "/api/payback", ) ); $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => json_encode($data), CURLOPT_HTTPHEADER => array( 'Content-Type: application/json' ), )); $response = curl_exec($curl); curl_close($curl); return $response; } 很急!
01-16已经有了,看这个https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/guide/service/internal.html
微信云托管使用服务调用redis?[图片] 这是我发现的文档,我想知道2022年7月份以后的要如何使用
01-14看这个文档《服务间内网调用》
微信云托管怎么安装redis?现在后端的springboot项目中配置了redis,打包部署到微信云托管,启动不起来,查看日志是因为微信云托管没有安装redis,怎么解决呢?
01-13