这个问题是你新申请的新的API证书[账户中心-API安全-API证书管理],在通过[账户中心-API安全-平台证书管理]进行灰度发布,而你本地的代码还没有先配置这个新的证书导致的,解决办法如下: 先关闭灰度发布[账户中心-API安全-平台证书管理];在代码里把新的证书配置上(可以先不启用),有一个certs:[]的数组选项,加上并上线;再重新开启灰度发布;正常后,下次升级再启用新的证书!
微信v3支付无规律的报错Cannot found the serial(`.....?Cannot found the serial(`373D7119004CF60C98B66A578CE8B85C86ACC4E6`)'s configuration, which's from the response(header:Wechatpay-Serial), your's 4D1D246365B6A34CE1415E1F9EBF1153F277AEC1. 用的v3支付,有一半的概率会出现这种错误,用的是jsapi支付,已经申请了新的支付证书
10-22我这里也出现了,什么鬼?
这个“超级广告”是什么鬼?突然就出现在我们小程序里了,哪配置的? [图片]
09-16开通“平台收付通” https://pay.weixin.qq.com/static/partner_ability/business_payment.shtml
贵司场景涉嫌代收其他商户交易款项并进行结算,存在资金安全风险,不支持配置。请实际收款方开通?微信支付直连高比例分账申请复审驳回这个是因为我添加的收款方名下有商户或者是咸鱼商户这种么? 我们是一个校园跑腿服务悬赏撮合平台,平台提供需求发布和接单功能,客户群体为在校大学生和教职工;流程是用户自行进行发布、接单、平台只负责撮合,发布用户需要支付悬赏金额平台抽部分技术服务费、剩余部分打款给接单用户,平台需要通过分账将接单用户应得的部分分给用户,设定是平台抽取20-30%的技术服务费剩余70%-80%分账给接单用户 [图片]
08-29https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/miniapp/component/onShareAppMessage.html 这里的onShareAppMessage()中的imageUrl,不支持透明的png,你们应该给小程序分享组件默认加了一个白色的背景; 在暗黑模式下就能看到,这个图圆角处是透明的,在微信里图的四个角显示了4个白色的底图,QQ里面没有这个问题,见图: [图片][图片]
小程序分享卡片里的图片,不支持透明图片?根据我们测试,小程序的分享卡片里的图片,不支持透明图片,甚至不支持透明度设置,这样会导致如下问题: 微信普通模式和暗黑模式分享下,透明图片会有白色的底,导致效果不好;分享卡片不能很好的适应暗黑模式。求解!
07-02相同的网址,你可以试试直接用微信能打开不
小程序被停用,多次整改申诉,回复的一直是一样的内容,也没有说明具体什么原因导致被停用。要改哪些东西?申诉编号:7312345 [图片]
2024-12-11参考 https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html
H5网页端怎么通过用户授权登录拿到code?网上的教程都是小程序或者公众号的,h5网页端可以获取到code吗
2024-12-07参考 https://developers.weixin.qq.com/miniprogram/dev/framework/performance/tips/runtime_setData.html 3.4 setData 应只传发生变化的数据对setData进行优化,对Array|Object只修改变化或者新增的部分
关于ai回复时输出内容过长时,使用setdata输出时,会导致小程序卡顿,有好的解决方法吗?requestTask.onChunkReceived(function (response) { const arrayBuffer: any = response.data; let responseText = ''; const uint8Array: any = new Uint8Array(arrayBuffer); let text = String.fromCharCode.apply(null, uint8Array); responseText += text; const lastIndex = responseText.lastIndexOf('\n', responseText.length - 2) let chunk = responseText let chunkArr = [] if (lastIndex !== -1) { let linesArray: any = responseText.split('\n'); chunkArr = linesArray.filter((item: any) => item !== ''); } else { chunkArr.push(chunk) } try { let stopStatus = _this.data.stopStatus if (stopStatus) { _this.setrestart() requestTask.abort(); // 终止请求 }else{ let replysources: any = _this.data.replysources let index = replysources.length - 1; replysources[index].text = replysources[index].text + text //markdown '#1E1E1E' replysources[index].textmarkdown = app.towxml(replysources[index].text, 'markdown', { theme:'dark' }) _this.setData({ replysources: replysources, process_status: true, //表示进程正在继续 }) } } catch (error) { // console.log("error1:", error) } }) 上述是接收返回数据,并通过setdata进行输出,但是返回的内容过长,点击停止输出时,不能响应。返回的内容少,点击停止时能快速响应的,请问下老铁们有好的解决方法吗?
2024-12-07AES-128-CBC 换成 AES-256-CBC
小程序-订阅消息回调-php解析失败?php 版本 7.4 由于官方提供的 mcrypt 在7.4被移除了,自己更改了 代码,但是解析失败了,求大佬指正 我的代码: public function decrypt($encrypted, $appid) { try { $ciphertext_dec = base64_decode($encrypted); $iv = substr($this->key, 0, 16); $decrypted = openssl_decrypt($ciphertext_dec, 'AES-128-CBC', $this->key, OPENSSL_RAW_DATA|OPENSSL_ZERO_PADDING, $iv); } catch (Exception $e) { return array(ErrorCode::$DecryptAESError, null); } try { $pkc_encoder = new PKCS7Encoder; $result = $pkc_encoder->decode($decrypted); if (strlen($result) < 16) return ""; $content = substr($result, 16); $len_list = unpack("N", substr($content, 0, 4)); $xml_len = $len_list[1]; $xml_content = substr($content, 4, $xml_len); $from_appid = substr($content, $xml_len + 4); } catch (Exception $e) { return array(ErrorCode::$IllegalBuffer, null); } if ($from_appid != $appid) return array(ErrorCode::$ValidateAppidError, null); return array(0, $xml_content); } 官方原来的代码: public function decrypt($encrypted, $appid) { try { //使用BASE64对需要解密的字符串进行解码 $ciphertext_dec = base64_decode($encrypted); $module = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_CBC, ''); $iv = substr($this->key, 0, 16); mcrypt_generic_init($module, $this->key, $iv); //解密 $decrypted = mdecrypt_generic($module, $ciphertext_dec); mcrypt_generic_deinit($module); mcrypt_module_close($module); } catch (Exception $e) { return array(ErrorCode::$DecryptAESError, null); } try { //去除补位字符 $pkc_encoder = new PKCS7Encoder; $result = $pkc_encoder->decode($decrypted); //去除16位随机字符串,网络字节序和AppId if (strlen($result) < 16) return ""; $content = substr($result, 16, strlen($result)); $len_list = unpack("N", substr($content, 0, 4)); $xml_len = $len_list[1]; $xml_content = substr($content, 4, $xml_len); $from_appid = substr($content, $xml_len + 4); } catch (Exception $e) { //print $e; return array(ErrorCode::$IllegalBuffer, null); } if ($from_appid != $appid) return array(ErrorCode::$ValidateAppidError, null); return array(0, $xml_content); }
2024-12-04体验版+调试信息,白屏后就可以看到错误提示
今天小程序一直白屏崩溃?就昨天新加一个接口后。今天就一直白屏崩溃,上次发布还是2个月前了。一直没事,今天偶发性会提示说我setdata数据多了,实际上数据加起来还不到10kb啊。昨天发布后都没事的
2024-11-28好像查不了进度,只能等通知;没有管局通过的话,小程序加急也没有用;提前做好时间规划才是正解;
小程序备案进度如何查询?小程序急需发布,请问如何查询通信管理局的审核进度呢,能不能加急审核
2024-09-02