- wx.makePhoneCall 真机使用小程序退出?
真机调试手机型号:华为Mate30 微信版本8.0.57 小程序基础库3.7.12 真机调试拨打电话,小程序自动退出
04-18 - wx.makePhoneCall 真机使用小程序退出?
使用wx.makePhoneCall时,在真机调试发现,调用wx.makePhoneCall 小程序自己退出了,求解决办法
04-18 - 如何申请开通getLocation
如何申请getLocation[图片]
04-08 - 使用Java调用https://api.weixin.qq.com/wxa/getwxacodeun
使用Java 调用https://api.weixin.qq.com/wxa/getwxacodeun 获取微信二维码时,生成的二维码图片破损如何解决? public static void generateQrcode(String scene, String page, String filePath) { HttpURLConnection connection = null; try { String accessToken = getAccessToken(); URL url = new URL(WXACODE_URL+"?access_token=" + accessToken); connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setDoOutput(true); connection.setRequestProperty("Content-Type", "application/json"); JSONObject requestBody = new JSONObject(); requestBody.put("scene", scene); requestBody.put("page", page); try (OutputStream os = connection.getOutputStream()) { byte[] input = requestBody.toString().getBytes("utf-8"); os.write(input, 0, input.length); } int responseCode = connection.getResponseCode(); if (responseCode == HttpURLConnection.HTTP_OK) { // 读取响应流 try (InputStream is = connection.getInputStream(); FileOutputStream fos = new FileOutputStream(filePath)) { byte[] buffer = new byte[4096]; int bytesRead; while ((bytesRead = is.read(buffer)) != -1) { fos.write(buffer, 0, bytesRead); } System.out.println("二维码生成成功,保存路径:" + filePath); } } else { System.out.println("请求失败,响应状态码:" + responseCode); } } catch (IOException e) { System.err.println("发生 IO 异常: " + e.getMessage()); } catch (JSONException e) { throw new RuntimeException(e); } finally { if (connection != null) { connection.disconnect(); } } }
04-08 - 小程序可以实现,设定不同的字体,通过选择不同的字体,改变指定文字的字体样式吗?
需求如下:设置多种的文字样式(比如:楷体、宋体等多种),通过picker进行选择,选择的字体后改变指定文字的样式;
2024-01-17 - chooseMedia 无法唤醒页面?
使用wx.chooseMedia选择本地图片时,无法唤醒页面 也不报错
2023-10-31