- 怎么看我的小程序广告组件哪些审核通过了?
小程序每次发布成功之后。需要进行小程序广告组件审核。导致目前线上版本的广告显示出现问题。请问我在哪里看到我的组件哪些审核成功了的。一般小程序广告组件审核时间是多久?
2021-10-20 - .net版微信支付分支付回调数据如何解密?
1.解密方法己找到。 [图片] public class AesGcm { private static string ALGORITHM = "AES/GCM/NoPadding"; private static int TAG_LENGTH_BIT = 128; private static int NONCE_LENGTH_BYTE = 12; private static string AES_KEY = "qrmmdt198611qrmmdt198611qrmmdt19"; public static string AesGcmDecrypt(string content, string key, string ivs) { byte[] bytes = Encoding.UTF8.GetBytes(key); byte[] bytes2 = Encoding.UTF8.GetBytes(ivs); byte[] array = Convert.FromBase64String(content); byte[] bytes3 = Encoding.UTF8.GetBytes("certificate"); GcmBlockCipher gcmBlockCipher = new GcmBlockCipher(new AesEngine()); AeadParameters aeadParameters = new AeadParameters(new KeyParameter(bytes), 128, bytes2, bytes3); gcmBlockCipher.Init(false, aeadParameters); byte[] array2 = new byte[gcmBlockCipher.GetOutputSize(array.Length)]; int num = gcmBlockCipher.ProcessBytes(array, 0, array.Length, array2, 0); gcmBlockCipher.DoFinal(array2, num); return Encoding.UTF8.GetString(array2); } } 请问这个方法的3个参数应该如何传值;
2020-01-19 - .Net版本根据官方解密方法对支付分支付回调数据解密时报错?
官方.Net解密方法 public class AesGcm { private static string ALGORITHM = "AES/GCM/NoPadding"; private static int TAG_LENGTH_BIT = 128; private static int NONCE_LENGTH_BYTE = 12; private static string AES_KEY = "qrmmdt198611qrmmdt198611qrmmdt19"; public static string AesGcmDecrypt(string content, string key, string ivs) { byte[] bytes = Encoding.UTF8.GetBytes(key); byte[] bytes2 = Encoding.UTF8.GetBytes(ivs); byte[] array = Convert.FromBase64String(content); byte[] bytes3 = Encoding.UTF8.GetBytes("certificate"); GcmBlockCipher gcmBlockCipher = new GcmBlockCipher(new AesEngine()); AeadParameters aeadParameters = new AeadParameters(new KeyParameter(bytes), 128, bytes2, bytes3); gcmBlockCipher.Init(false, aeadParameters); byte[] array2 = new byte[gcmBlockCipher.GetOutputSize(array.Length)]; int num = gcmBlockCipher.ProcessBytes(array, 0, array.Length, array2, 0); gcmBlockCipher.DoFinal(array2, num); return Encoding.UTF8.GetString(array2); } } 回调内容: {"id":"1d832905-6b41-5740-bfc2-90578d17887c","create_time":"2020-01-19T12:13:16+08:00","event_type":"PAYSCORE.USER_CONFIRM","resource_type":"encrypt-resource","resource":{"algorithm":"AEAD_AES_256_GCM","ciphertext":"nLUWcQpwQYOnq2QfBNxGfbO+jyvR7WA+up7iW/mv6hZ5VfPUzRB/WSOP6NgrcC+sFSijgtiIGiH/OWvoTifsROvRDqLMjPGfImQ22krvaR8Ydk/K9bNjkv8FAxjn2JMT7aB13E6Y3GCSRxLiudFLVKw4EE6zquyqY9+fsVujzzbHSUDy8DF3ywB9sPx34HlzwA/TWEjA5qzh5xitai68ZGvDekBp6BU4CQ9agvvPBj2OC4fGiJVBQtiEsChKFzzGxVXpB9HswLKROGPKtEE4+C5urLNes5tFQRYWeAsVD5Ipok56ZruvKov1ieWmpL6YOcmK8lEk/NHJkOCPunzPXzrNcUAnBs1iUQXSP431cVLXKVDK92UPscNK5QGLH7i8xEyRs+mg/QPIZ2Yk+vZ7jSOlDCM+HGyQeNaraSwDct8ZpDKpzz28QdWaTLJ7+MQCdURPaSInJ+E9E1HWAPxVwJrtAkJC3Jz83rnC+NMWbtWtzKlRyZchDa02nqUim+Y+Q1JufhDrIx0hjToEJUkqnHfBrmpDbZ0uEn7E5xlqdR9xddJe0YJaY5MlmI/nHKReLqT3rZwxAz9iW78co2xqJNxlD5O35m/L5M+4lrdSeO3JTowjtiQnmqLG30vBrWWMrjJa1sdoKT+Coi8sSllptCpDE8wVFvDW/pXkSLzuZ0TOR3EwmPkwwGxUetczi++xktTmM1OkZ7SedV/5CDpPiSynuZ6G6E3ONK/eTzIUzsopv1HgV3ae0+RIK8TuA9dwFm2jDx0fWnABKa0xLEWC7okitpIHQziTL2ncN+/GabZGQ4XCRO594BujHVDKQDxhYzCM0d6T+j642gJv4DGOlCt8UdlNhl3vc558vMFeuaKJmg10oYHgVG7yaSNGYoi7sfzl8F6N/F3dxm8dqe1kaKk0zbuNRi/o0ilkeAqaYpOgUtvZepwsrGwOdIEyS5zlZCeZ8rAxDP8W/raweDo3jCJp/ts8Y/BHsdX0Y/K7EsbRPAXa","associated_data":"payscore","nonce":"aHAMIh2xWa1o"}} //回调内容里面的:resource.ciphertext var content="nLUWcQpwQYOnq2QfBNxGfbO+jyvR7WA+up7iW/mv6hZ5VfPUzRB/WSOP6NgrcC+sFSijgtiIGiH/OWvoTifsROvRDqLMjPGfImQ22krvaR8Ydk/K9bNjkv8FAxjn2JMT7aB13E6Y3GCSRxLiudFLVKw4EE6zquyqY9+fsVujzzbHSUDy8DF3ywB9sPx34HlzwA/TWEjA5qzh5xitai68ZGvDekBp6BU4CQ9agvvPBj2OC4fGiJVBQtiEsChKFzzGxVXpB9HswLKROGPKtEE4+C5urLNes5tFQRYWeAsVD5Ipok56ZruvKov1ieWmpL6YOcmK8lEk/NHJkOCPunzPXzrNcUAnBs1iUQXSP431cVLXKVDK92UPscNK5QGLH7i8xEyRs+mg/QPIZ2Yk+vZ7jSOlDCM+HGyQeNaraSwDct8ZpDKpzz28QdWaTLJ7+MQCdURPaSInJ+E9E1HWAPxVwJrtAkJC3Jz83rnC+NMWbtWtzKlRyZchDa02nqUim+Y+Q1JufhDrIx0hjToEJUkqnHfBrmpDbZ0uEn7E5xlqdR9xddJe0YJaY5MlmI/nHKReLqT3rZwxAz9iW78co2xqJNxlD5O35m/L5M+4lrdSeO3JTowjtiQnmqLG30vBrWWMrjJa1sdoKT+Coi8sSllptCpDE8wVFvDW/pXkSLzuZ0TOR3EwmPkwwGxUetczi++xktTmM1OkZ7SedV/5CDpPiSynuZ6G6E3ONK/eTzIUzsopv1HgV3ae0+RIK8TuA9dwFm2jDx0fWnABKa0xLEWC7okitpIHQziTL2ncN+/GabZGQ4XCRO594BujHVDKQDxhYzCM0d6T+j642gJv4DGOlCt8UdlNhl3vc558vMFeuaKJmg10oYHgVG7yaSNGYoi7sfzl8F6N/F3dxm8dqe1kaKk0zbuNRi/o0ilkeAqaYpOgUtvZepwsrGwOdIEyS5zlZCeZ8rAxDP8W/raweDo3jCJp/ts8Y/BHsdX0Y/K7EsbRPAXa"; //微信商户平台的支付密钥 var key="qrmmdt198611qrmmdt198611qrmmdt19"; //回调内容里面的:nonce var ivs="aHAMIh2xWa1o"; //调用官网解密方法 AesGcm.AesGcmDecrypt(content, key, ivs) [图片] 是我传的参数写错了吗??
2020-01-19 - 为什么用.Net版本的AEAD_AES_256_GCM解密方法报引用错误?
[图片] 复制官方的代码过来。直接报错; 官方代码截图 [图片] 目前最高的.Net Framework 4.8的我都试过了。还是报缺少引用错误。
2020-01-09 - 加密支付分支付成功回调数据时,.Net的证书和回调报文解密方法为什么缺少引用?
WechatPay-VPI-V3: https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/zheng-shu-he-hui-tiao-bao-wen-jie-mi [图片] 复制这个.Net的加密方法到本地 [图片] 报缺少引用程序集。请问这个类或者程序集在哪里下载?
2020-01-09 - [微信支付分]支付成功回调解密方法怎么用.net的版本复制过来会报错?
复制官方的.net解密方法到开发本地。报缺少using程序集引用. [图片]
2020-01-09 - 跳[支付分小程序]授权报:系统繁忙,请重新尝试怎么解决?签名验证过.是正确的
这是后台返回的数据 mch_id:1519974821 package:AAQTnZoAAAABAAAAAADSjb5N_7w3sFmyoF4VXiAAAABcwQVtru-5k9MmEOZJ_Pv_Nq7Cw56dNKKN5EjZKnt5jbjnMD7YbHRlC5zwLEKdf_QlcadXGqCyzBlpbCbaf8Niq33iE6973TcJruUfi5e75K70IDD2tiCrSykaU_KKPJMDfebK4n-SDXmelxp82RuGPNwXOf_Dbku7sDz0RKrH7GjHDeP0ckX1pdxnKkj0WhvPPl8JX_6Fmn6Z timestamp:1578458784 nonce_str:ZTZ6ZLV680HD2HV4RN0268RZV6086HNT sign_type:HMAC-SHA256 sign:5BFBD8259A6072CF70EFDFC94B02AC09 console.log('mch_id:' + e.msg.mch_id) console.log('package:' + e.msg.package) console.log('timestamp:' + e.msg.timestamp) console.log('nonce_str:' + e.msg.nonce_str) console.log('sign_type:' + e.msg.sign_type) console.log('sign:' + e.msg.sign) if (wx.openBusinessView) { wx.openBusinessView({ businessType: 'wxpayScoreUse', extraData: { mch_id: e.msg.mch_id, package: e.msg.package, timestamp: e.msg.timestamp, nonce_str: e.msg.nonce_str, sign_type: e.msg.sign_type, sign: e.msg.sign }, success() { //dosomething }, fail() { //dosomething }, complete() { //dosomething } }); } else { //引导用户升级微信版本 } [图片]签名内容验证过.是正常的。我是用的MD5加密的方式
2020-01-08 - 调用wx.openBusinessView执行支付分授权时为什么会提示系统繁忙,请重新尝试?
华为Mate 20 Pro 微信版本:7.0.10 接口名称:wx.openBusinessView wx.navigateToMiniProgram({ appId: 'wxd8f3793ea3b935b8' path: 'pages/use/use' extraData: { mch_id: 1519974821, package: 'AAQTnZoAAAABAAAAAACsuOZm0JyQlksstVsVXiAAAABcwQVtru-5k9MmEOZJ_Pv_Nq7Cw56dNKKN5EjZKnt5jR9YXXQ9x4jjQmeaw2hjs43hIdxqKCLPFYWTMHMLuhXH1q0swzxBC6J-oZLKu9VWo-mkdk9kKzh8KLh9cKVqBuyQLkSK6sVpIbaXqcq8YZcAGLYy7Y4knE-WuMP4Y1TVzu0egZH6Bw3g-mZa42lAcoqELBHVJZSarO39', timestamp: '1578458037', nonce_str: '8XX20VDFNRT6T208RXN2D2X8B02HDXP6', sign_type: 'HMAC-SHA256', sign: 'B9192C80B32527E556C84A24B40F6171' }, success() { //dosomething }, fail(e) { console.log(e) //dosomething }, complete() { //dosomething } }); [图片]可以跳转过去、但是提示:这个错误。验证过签名。是正确的。采用的是MD5加密方式。
2020-01-08 - Http头Authorization值格式错误,请参考《微信支付商户REST API签名规则》
我的后台代码 [图片] 创建支付分订单API 适用对象:微信支付分 请求URL:https://api.mch.weixin.qq.com/v3/payscore/serviceorder 请求方式:POST 接口规则:https://wechatpay-api.gitbook.io/wechatpay-api-v3 [图片] 返回的结果
2019-12-27 - Http头Authorization值格式错误,请参考《微信支付商户REST API签名规则》?
创建支付分订单API 适用对象:微信支付分 请求URL:https://api.mch.weixin.qq.com/v3/payscore/serviceorder 请求方式:POST 接口规则:https://wechatpay-api.gitbook.io/wechatpay-api-v3 我的后台代码用的是.net 开发的。在对接该接口时;老是提示:Http头Authorization值格式错误,请参考《微信支付商户REST API签名规则》 [图片] 我的后台代码是这样写的 [图片] 我设置过很多方式都不行。这个规则到底是怎样的?
2019-12-26