- api签名错误,如何查看错误?
[图片] [图片] api加密签名后得到错误,但是本人的过程没有错误,如何查看错在哪里
2023-08-16 - api重置后,既不能下载到私钥,也不能重置,如何操作?
https://mp.weixin.qq.com/wxamp/apiSecret [图片] [图片] [图片]
2023-08-15 - 如何找到服务端api加密示例中该死的私钥?
https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/getting_started/api_signature.html 你们官方示例中用了私钥,mp后台配置只有公钥,那私钥从哪里冒出来。 [图片][图片] [图片]
2023-08-14 - 服务端api加密的php版本,帮我看下错误在哪里?
const cipher = crypto.createCipheriv("aes-256-gcm", real_key, real_iv) cipher.setAAD(real_aad) let cipher_update = cipher.update(real_plaintext) let cipher_final = cipher.final() const real_ciphertext = Buffer.concat([cipher_update, cipher_final]) const real_authTag = cipher.getAuthTag() shs上面这段node.js代码变成php改怎么写啊。自己试了下是错误的,如标红的地方 public function test() { $ctx = array( "local_sym_key" => "otUpngOjU+nVQaWJIC3D/yMLV17RKaP6t4Ot9tbnzLY=", "local_sym_sn" => "fa05fe1e5bcc79b81ad5ad4b58acf787", "local_appid" => "wxba6223c06417af7b", "url_path" => "https://api.weixin.qq.com/wxa/getuserriskrank" ); $req = array( "appid" => "wxba6223c06417af7b", "openid" => "oEWzBfmdLqhFS2mTXCo2E4Y9gJAM", "scene" => 0, "client_ip" => "127.0.0.1", ); $local_ts = floor(time()); $nonce = str_replace("=", "",base64_encode(random_bytes(16))); $reqex = array( "_n" => $nonce, "_appid" => $ctx['local_appid'], "_timestamp" =>$local_ts ); $real_req = array_merge($reqex, $req); $plaintext = json_encode($real_req); $aad = $ctx['url_path'].'|'.$ctx['local_appid'].'|'.$local_ts.'|'.$ctx['local_sym_sn']; $real_key = base64_decode($ctx['local_sym_key']); $real_iv = random_bytes(12); $real_aad = utf8_decode($aad); $real_plaintext = utf8_decode($plaintext); $ciphertext = openssl_encrypt($real_plaintext, 'aes-256-gcm', $real_key, $options=0, $real_iv, $tag); $iv = base64_encode($real_iv); $data = base64_encode($real_plaintext.$ciphertext); $authtag = base64_encode($ciphertext->getAuthTag()); $req_data = [$iv, $data, $authtag]; $new_req = array( "req_ts" => $local_ts, "req_data" => json_encode($req_data) ); return $new_req; }
2023-08-14 - 为何没有php的版本???????
https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/getting_started/api_signature.html
2023-08-13 - 用户在小程序支付成功后,商家如何收到支付成功消息,提示发货?
用户在小程序支付成功后,商家如何收到支付成功消息,提示发货?小程序后台可以提示吗
2023-08-12 - 微信同城配送商家的下单操作在哪里
https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html
2023-08-09 - 同城配送费用用不完或者不想用了,可以退费吗?
[图片]
2023-08-09 - 图片二进制转成base64,arrayBufferToBase64这用什么替代?
拿到图片二进制,转不成图片,狗日的智障腾讯又把这个函数废弃了,使用就会报错,网上查了好多自己转换的都不能用。
2023-08-04 - 生成不了小程序二维码码,报错如下,access_token missing rid?
百度很多人都遇到这个天坑,搞了一天没搞好,在小程序后台设置了服务器的白名单也没用 [图片] [图片]
2023-08-04