如何通过命令行调用或者HTTP调用拿到登录态,判断开发者工具是否登录成功?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:24 613 0 全屏看文

AI助手支持GPT4.0

如何通过命令行调用或者HTTP调用拿到登录态,判断开发者工具是否登录成功?

最近正在开发小程序,但是开发期间老是被测试同学求码的要求打断(微信小程序的开发码只有25分钟有效期,坑啊)。现在想的是弄一个东西可以让测试同学自己打码。

主要是借助小程序的命令行调用和HTTP调用,参考文档如下:

https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html

https://developers.weixin.qq.com/miniprogram/dev/devtools/http.html

在开发者工具没有开启的时候是没有端口号的,所以只能使用命令行调用来启动工具,输入 cli login命令后可以返回登录的二维码,开发者扫码以后怎么获取这个是否登录成功的登录态呢?

Recently, we are developing a small program, but during the development, I am always interrupted by the request of the testing students for code (the development code of wechat applet has a valid period of 25 minutes, pit ah). What I want now is to make something that can let the test students type their own code. It mainly uses the command line call and HTTP call of the applet. The reference documents are as follows: https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html https://developers.weixin.qq.com/miniprogram/dev/devtools/http.html There is no port number when the developer tool is not opened, so you can only use the command line call to start the tool and enter cli After the login command, the login QR code can be returned. How can developers get the login status of whether the login is successful after scanning the code?

回答:

小马:你好,并不是用户登录。是开发者是否登录开发者工具这个问题
子不语:这个,没必要判断吧?左上角就能看到了……
小马:我重新编辑了下问题内容,烦请大神过目
子不语:给他们体验版吧,那个没有时间限制,上传一下就行

请学会如何「提问」(👈戳我)

谋谋谋:

如题 已阅

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
v3代金券发放给小程序用户openid与appid不匹配?
APP支付可以推荐关注服务号吗?在支付完成界面下方有复选框,勾选可关注的那种?怎么设置呢?
服务号的模板消息是否可以长期不定时推送产品报价?
小游戏申请公测之后一直没有量进来,麻烦帮忙补量,谢谢
微信支付商户首页有个手续费账户未开通,这是什么意思,怎么开通?
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8474
问题? 7999
如何快速搭建抽奖助手小程序(无需代码知识) 5258
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6531
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5822
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5486
如何解决渲染层网络错误Failed to load media? 16737
小程序找号找回 释放昵称? 2758
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2628
删除部分微信用户个人数据的通知,怎么删除? 5797