微信小程序怎么注销个人信息

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了微信小程序怎么注销个人信息相关的知识,希望对你有一定的参考价值。

参考技术A

微信小程序注销个人信息方法如下:

手机型号:iPhone13。

手机系统:ios15。

软件:微信。

1、打开手机微信,进入微信首页,点击页面下方的“发现”,进入微信的发现页。 

2、进入微信的发现页后,点击小程序,进入微信的小程序页面。 

3、进入微信小程序页面后,点击一个我们想要关闭个人信息授权的小程序,进入该小程序页面。 

4、进入小程序页面后,点击页面右上角的“...”,页面下方显示对应的操作功能选项进入该小程序的详情页面。

5、进入小程序设置页面后,点击“用户信息”一栏后方的绿色开关按钮,页面提示“关闭授权后可能会影响使用小程序的部分功能......”,点击“关闭授权”即可。

微信小程序,weixin,怎么获取用户的Openid

参考技术A 获取微信OpenId 先获取code 再通过code获取authtoken,从authtoken中取出openid给前台 微信端一定不要忘记设定网页账号中的授权回调页面域名 流程图如下 主要代码 页面js代码 /* 写cookie */ function setCookie(name, value) var Days = 30; var exp = new Date(); exp/connect/oauth2/authorize?appid=") /sns/oauth2/access_token?"; StringBuffer url = new StringBuffer(uri); url.URL; public class HttpClientUtil // 设置body体 public static void setBodyParameter(String sb, HttpURLConnection conn) throws IOException DataOutputStream out = new DataOutputStream(conn.getOutputStream()); out.writeBytes(sb); out.flush(); out.close(); // 添加签名header public static HttpURLConnection CreatePostHttpConnection(String uri) throws MalformedURLException, IOException, ProtocolException URL url = new URL(uri); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setUseCaches(false); conn.setDoInput(true); conn.setDoOutput(true); conn.setRequestMethod("POST"); conn.setInstanceFollowRedirects(true); conn.setConnectTimeout(30000); conn.setReadTimeout(30000); conn.setRequestProperty("Content-Type","application/json"); conn.setRequestProperty("Accept-Charset", "utf-8"); conn.setRequestProperty("contentType", "utf-8"); return conn; public static byte[] readInputStream(InputStream inStream) throws Exception ByteArrayOutputStream outStream = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int len = 0; while ((len = inStream.read(buffer)) != -1) outStream.write(buffer, 0, len); byte[] data = outStream.toByteArray(); outStream.close(); inStream.close(); return data; 封装AuthToken的VO类 package com.huatek.shebao.wxpay; public class AuthToken private String access_token; private Long expires_in; private String refresh_token; private String openid; private String scope; private String unionid; private Long errcode; private String errmsg; public String getAccess_token() return access_token; public void setAccess_token(String access_token) this.access_token = access_token; public Long getExpires_in() return expires_in; public void setExpires_in(Long expires_in) this.expires_in = expires_in; public String getRefresh_token() return refresh_token; public void setRefresh_token(String refresh_token) this.refresh_token = refresh_token; public String getOpenid() return openid; public void setOpenid(String openid) this.openid = openid; public String getScope() return scope; public void setScope(String scope) this.scope = scope; public String getUnionid() return unionid; public void setUnionid(String unionid) this.unionid = unionid; public Long getErrcode() return errcode; public void setErrcode(Long errcode) this.errcode = errcode; public String getErrmsg() return errmsg; public void setErrmsg(String errmsg) this.errmsg = errmsg; 感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

以上是关于微信小程序怎么注销个人信息的主要内容,如果未能解决你的问题,请参考以下文章

微信小程序商城怎么做?

微信小程序登陆不上去怎么回事?

微信小程序做出这种效果需要用到代码吗

微信小程序云开发修改个人信息为啥修改的变成其他人的

微信小程序怎么删除数据重玩

如何重置微信小程序数据