- 小程序cgi-bin/media/upload接口报错41005错误码什么回事的呢?
errcode":41005,"errmsg":"media data missing hint: [05443954] rid: 65a101b0-53920c02-56542908" $url = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token=".$ACCESS_TOKEN."&type=image"; if(class_exists('\CURLFile')){ $real_path = "D:\www_pro\WWW\winfully_cn_svn\public\balance.png"; $data = array( "access_token" => $ACCESS_TOKEN, "media" => new \CURLFile($real_path), ); }else{ echo "环境比较低无法上传"; exit(); } $result = $this->request_post($url,helper::jsonEncode($data)); halt($result); private function request_post($url = '', $data = ''){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER , true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER , false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST , false); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $res = curl_exec($ch); curl_close($ch); return $res; }
2024-01-12 - h5跳转小程序按钮不出来,wx-open-launch-weapp 为什么不出来?
<script src="https://fastly.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script> wx.config({ debug:true, appId: config.appId, timestamp:Number(config.timestamp), nonceStr:config.nonceStr, signature:config.signature, jsApiList: [ 'checkJsApi', 'onMenuShareAppMessage', ], openTagList: ['wx-open-launch-weapp'], }) wx.ready(function () { wx.checkJsApi({ jsApiList: ['chooseImage','updateAppMessageShareData','updateTimelineShareData'], success: function(res) { if(res.errMsg=='checkJsApi:ok'){ console.log('xxxxxxxxxx',res) } } }); }); <body> <wx-open-launch-weapp id="launch-btn" username="gh_ad28b62582b8" path="/pages/user/index"> <script type="text/wxtag-template" slot="style"> <style>.btn { padding: 12px;color:red }</style> <button class="btn">打开小程序</button> </script> </wx-open-launch-weapp> <script> var btn = document.getElementById('launch-btn'); btn.addEventListener('launch', function (e) { console.log('success'); }); btn.addEventListener('error', function (e) { console.log('fail', e.detail); }); </script> </body>
2022-08-19 - 小程序隐私保护指引配置接口请求接口错误?
[图片] 接口地址:https://api.weixin.qq.com/cgi-bin/component/uploadprivacyextfile?access_token=ACCESS_TOKEN file 参数不是直接路径的吗?还是另外有格式又不说清楚?
2021-11-19 - 小程序代码审核结果推送接口事件参数值错误
真实的 Event 事件返回值没有 这些啊 事件类型事件类型说明weapp_audit_success审核通过weapp_audit_fail审核不通过weapp_audit_delay审核延后 真实的返回审核成功是 user_enter_tempsession 不是 weapp_audit_success
2021-06-23