Oops! Something went wrong:(

anChaOs1224 2016-05-04 10:30:03
使用微信开放平台授权登录,第一步,获取code。

我构造好url以后,打开这个url,结果Oops! Something went wrong:(

https://open.weixin.qq.com/connect/qrconnect?appid=这里保密不能告诉你们&redirect_uri=http%3A%2F%2Fdw.airm2m.com%2Fpk_weixin%2Fpk_weixin_login&response_type=code&scope=snsapi_login&state=wechat_dWVR2wNxflVBW02whcID#wechat_redirect

哪儿错了?
...全文
4612 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Viens_de_feng 2019-10-11
  • 打赏
  • 举报
回复
niupia1
anChaOs1224 2016-05-05
  • 打赏
  • 举报
回复
好吧。。自己的问题自己解答。 还是redirect_uri的错误,我把注册的时候填写的回调地址的次级目录全部去掉,只留下一个域名,就可以了。 最终,我的注册的回调地址填的是xx.xxxx.xxx redirect_uri,填的是xx.xxxx.xxx/xxx/login 完美解决。 千万不要把注册的回调地址携程xx.xxxx.xxx/xxx,否则就会出错。 好了,大家可以过来免费拿分了,先到先得
作者TutorialsAndroid,源码KAlertDialog,AlertDialog for Android,一个美丽的材料警报对话框,可在Android应用中使用。屏幕截图注意新版本的15.4.19 requireAPINew版本不支持旧的Android版本。建立使用AlertDialog的最简单方法是将库添加为构建的依赖项。完整将其添加到存储库末尾的根build.gradle中:allprojects {     repositories {         ...         maven { url 'https://jitpack.io' }     } }添加依赖项:dependencies {         implementation 'com.github.TutorialsAndroid:KAlertDialog:v15.4.19' }使用显示材料进度KAlertDialog pDialog = new KAlertDialog(this, KAlertDialog.PROGRESS_TYPE); pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86")); pDialog.setTitleText("Loading"); pDialog.setCancelable(false); pDialog.show();您可以使用物质进度方法通过KAlertDialog.getProgressHelper动态自定义进度条:resetCount()isSpinning()spin()stopSpinning()getProgress()setProgress(float progress)setInstantProgress(float progress)getCircleRadius()setCircleRadius(int circleRadius)getBarWidth()setBarWidth(int barWidth)getBarColor()setBarColor(int barColor)getRimWidth()setRimWidth(int rimWidth)getRimColor()setRimColor(int rimColor)getSpinSpeed()setSpinSpeed(float spinSpeed)基本信息:new KAlertDialog(this)     .setTitleText("Here's a message!")     .show();带有文字的标题:new KAlertDialog(this)     .setTitleText("Here's a message!")     .setContentText("It's pretty, isn't it?")     .show();错误信息:new KAlertDialog(this, KAlertDialog.ERROR_TYPE)     .setTitleText("Oops...")     .setContentText("Something went wrong!")     .show();警告信息:new KAlertDialog(this, KAlertDialog.WARNING_TYPE)     .setTitleText("Are you sure?")     .setContentText("Won't be able to recover this file!")     .setConfirmText("Yes,delete it!")     .show();成功信息:new KAlertDialog(this, KAlertDialog.SUCCESS_TYPE)     .setTitleText("Good job!")     .setContentText("You clicked the button!")     .show();带有自定义图标的消息:new KAlertDialog(this, KAlertDialog.CUSTOM_IMAGE_TYPE)     .setTitleText("Sweet!")     .setContentText("Here's a custom image.")     .setCustomImage(R.drawable.custom_img)     .show();绑定监听器确认按钮:new KAlertDialog(this, KAlertDialog.WARNING_TYPE)     .setTitleText("Ar

3,157

社区成员

发帖
与我相关
我的任务
社区描述
微信开发即微信公众平台开发,将企业信息、服务、活动等内容通过微信网页的方式进行表现,通过二次开发可以将公众账号由一个媒体型营销工具转化成提供服务的产品。
社区管理员
  • 微信开发
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧