开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 5295|回复: 5
收起左侧

[已回应] 8.2.5版本里 json.成员数 问题

[复制链接]
结帖率:100% (7/7)
发表于 2020-6-27 13:57:21 | 显示全部楼层 |阅读模式   陕西省宝鸡市


json.成员数(result)     获取Q好友分组数量

8.0.0-8.2.5版本的模块都取不到成员数量

7.3版本的模块可以取到

解析什么的都正常,代码不变的情况下换模块版本即可成功,是新模块我用法不对吗?看解释说是要数组什么的

json文本:
{"ec":0,"errcode":0,"em":"","result":{"1":{"mems":[{"name":"陶水水","uin":2205084},{"name":"咖啡屋","uin":4810074},{"name":"静待花开","uin":20727791},{"name":"Sumdream.iDeas Limited","uin":30182243},{"name":"m 謎 兒 ;","uin":35110206},{"name":"今为","uin":38748569},{"name":"Eternity","uin":51647990},{"name":"?_蕜??劇_ ??","uin":65203956},{"name":"等太阳升起","uin":77768919},{"name":"紸錠","uin":86377977},{"name":"我是鲨鱼","uin":93888075},{"name":"??鹏锅锅??","uin":122125791},{"name":"刷客—腐蝶","uin":137645693},{"name":"瓶子哥","uin":156327556},{"name":"贝戈诗-售后客服","uin":156649423},{"name":"a好友克隆微信加粉营销软","uin":162196006},{"name":"淘宝安全升钻","uin":171520485},{"name":"快樂寶貝","uin":182816825},{"name":"云传媒","uin":190780202},{"name":"何处几叶萧萧雨","uin":196051604},{"name":"坚强的心","uin":197488676},{"name":"加QQ之后发买号审核","uin":202696168},{"name":"乐迪斯","uin":237347903},{"name":"晴天","uin":243462128},{"name":"白色蜗牛","uin":270330949},{"name":"萧洒走一回","uin":273007148},{"name":"漠漠","uin":278029745},{"name":"如果这有你","uin":278307297},{"name":"明月清风","uin":290035463},{"name":"?","uin":290924928},{"name":"╰Eva","uin":291842446},{"name":"297206424","uin":297206424},{"name":"吸血鬼","uin":303892629},{"name":"こほう","uin":316296612},{"name":"罗丰(THM)","uin":328179535},{"name":"慧梦","uin":337920223},{"name":"Amy 1997","uin":343675243},{"name":"戒不掉的思念!","uin":346340351},{"name":"刷客眠眠","uin":350745940},{"name":"谈何.轻易","uin":350933340},{"name":"艺姿曼服装","uin":353196639},{"name":"官方认可小号专","uin":367276010},{"name":"$最熟悉的陌生人$","uin":370110329},{"name":"点点滴滴烦烦烦丶丶丶","uin":383176361},{"name":"相容以沫","uin":383695800},{"name":"糖果","uin":409305365},{"name":"紫叶清秋","uin":422464806},{"name":"雲★中★飝","uin":448502842},{"name":"??","uin":452356516},{"name":""︶ε╰莫等闲゛","uin":464827331},{"name":"杜鹃特产小吃城","uin":469269634},{"name":"Z","uin":475977181},{"name":"疯狂来购物","uin":488016233},{"name":"⒈個人の微笑","uin":495214063},{"name":"同泽","uin":496386299},{"name":"随便~硬汉  (张付林)","uin":517915190},{"name":"地球过客","uin":531644272},{"name":"萨瓦迪卡","uin":532081056},{"name":"╭开蘂快楽╮","uin":540456928},{"name":"~“安静”~","uin":542738055},{"name":"晓晓_Iris","uin":553112470},{"name":"小五哥","uin":553238775},{"name":"远醇","uin":571313431},{"name":" 爱疯狂&原野","uin":583564061},{"name":"Travel round the world","uin":592136792},{"name":"安全淘宝升钻","uin":592647549},{"name":" @","uin":593040310},{"name":"刷客  juan","uin":595298845},{"name":"华峰制药","uin":596355935},{"name":"HEHE","uin":598072478},{"name":"承诺一辈子","uin":598637970},{"name":"桂桂","uin":609224174},{"name":"我是魔,你是人","uin":625724586},{"name":"信誉客服-④","uin":651729374},{"name":"家具名品","uin":664596146},{"name":"我是大胖子","uin":669617970},{"name":"NO.1","uin":676531088},{"name":"追梦赤子心","uin":691223682},{"name":"精灵宝贝??金子??","uin":707572352},{"name":"联动客服612","uin":727473904},{"name":"〃笑看人生","uin":729766645},{"name":"钻,先刷,后付钱","uin":759549480},{"name":"纪","uin":768546292},{"name":"防静电木板","uin":794030100},{"name":"淘商人淘宝培训-利为汇","uin":800003968},{"name":"贝戈诗服装批发网","uin":800007212},{"name":"淘宝客服-联盟网络科技","uin":800015671},{"name":"淘宝经验畅谈居","uin":800025547},{"name":"淘宝客服-思宏网络","uin":800051770},{"name":"创信通网络","uin":800055809},{"name":"创信通网络","uin":800058837},{"name":"华博士医学服务中心","uin":800073216},{"name":"淘宝优质商品导购-优优淘","uin":800077397},{"name":"淘宝VIP客户客服——返乐宝","uin":800082973},{"name":"淘宝小号","uin":800083281},{"name":"_","uin":812348047},{"name":"。","uin":837007789},{"name":"嗨~我的女孩","uin":842731923},{"name":" 泡泡","uin":843419533},{"name":"为爱停留","uin":877161925},{"name":"味~道","uin":910500729},{"name":"啊盛","uin":915132997},{"name":"先做","uin":930546347},{"name":"太子","uin":930688109},{"name":"第一分销网","uin":938043814},{"name":"中天","uin":960422742},{"name":"坦诚相待~","uin":961701103},{"name":"守望.幸福","uin":962796250},{"name":"某一天","uin":979187103},{"name":"小七??","uin":995798470},{"name":"向左向右/wx","uin":1010244871},{"name":"店、小二╮","uin":1012554454},{"name":"晴天","uin":1016734061},{"name":"九零后逍遥","uin":1038396632},{"name":"左耳","uin":1050822057},{"name":"哦呵呵","uin":1053001300},{"name":"beitai(っ??╭╮??)っ伐开","uin":1064113321},{"name":"上善若水","uin":1071943372},{"name":"春季","uin":1103449423},{"name":"执念追梦","uin":1113940552},{"name":"成成网游代练","uin":1123832788},{"name":"姝姐姐laa","uin":1140447120},{"name":"欢儿","uin":1144313247},{"name":"ZUZU.朵色,DHV产品","uin":1154829474},{"name":"笨笨Forever","uin":1175528321},{"name":"黄晓龙","uin":1176958436},{"name":"董事-天蒙","uin":1186386905},{"name":"营","uin":1197269433},{"name":"打酱油滴","uin":1208521044},{"name":"茶花女","uin":1209969155},{"name":"小美姑娘??","uin":1214543365},{"name":"Hawaii sunny","uin":1223291149},{"name":"渔歌","uin":1284459907},{"name":"抽奖通知","uin":1291984280},{"name":"詹小风","uin":1320956276},{"name":"太阳当空照","uin":1350655491},{"name":" 香舍衣衣","uin":1452415790},{"name":"Hope","uin":1453578389},{"name":"bateer","uin":1491878793},{"name":"雨人","uin":1499601067},{"name":"笑笑","uin":1500761891},{"name":"Fly","uin":1528976017},{"name":"┾恋戦℃ャ逍遥","uin":1534190454},{"name":"【彼岸】","uin":1536108573},{"name":"毁人不倦","uin":1620601630},{"name":"雅韵茶亭","uin":1642391841},{"name":"l云o睿v磊e","uin":1652446451},{"name":"曼陀","uin":1695897440},{"name":"双儿","uin":1755981482},{"name":"回忆","uin":1831829874},{"name":"xvdeu","uin":1900237002},{"name":"精品女包","uin":1904701477},{"name":"天道酬勤","uin":1955759013},{"name":"职业放单","uin":1979586567},{"name":"劇終","uin":1979846556},{"name":"【香港正品王】","uin":2043530174},{"name":"老男孩!","uin":2093608266},{"name":"二十一","uin":2209969949},{"name":"ζ???? ?","uin":2211694976},{"name":"一分钟","uin":2219141039},{"name":"weewt","uin":2293809594},{"name":"过气软妹.","uin":2307973886},{"name":"逸品界","uin":2316109788},{"name":"叫我女王大人","uin":2331786982},{"name":"","uin":2355475295},{"name":"空空","uin":2363155129},{"name":"夕颜","uin":2376433150},{"name":"kkk","uin":2392048013},{"name":"找软文渠道","uin":2450523955},{"name":"柴辉鸣宏秋青","uin":2456841560},{"name":"2484529086","uin":2484529086},{"name":"岁竹年","uin":2496561321},{"name":"@爱你一万年","uin":2507708801},{"name":"感觉快乐","uin":2532436801},{"name":"海阔天空","uin":2554142481},{"name":"你走过的  我走过的","uin":2605614876},{"name":"都别闹我有枪!","uin":2631526196},{"name":"魂牵梦绕","uin":2657630757},{"name":"lavd nady","uin":2748034363},{"name":"菱儿","uin":2775624820},{"name":"夜空","uin":2777519302},{"name":"bd","uin":2804135669},{"name":"ˇゞ傷ㄋの誰疼","uin":2832607516},{"name":"远兮蜂神榜","uin":2852397726},{"name":"可恶","uin":2878642879},{"name":"索菲特的沙-","uin":2938274529},{"name":"微信营销顾问珍珍","uin":2992903303},{"name":"薇","uin":2993056190},{"name":"靓靓","uin":3041388315},{"name":"芸芸众","uin":3072631563},{"name":"柠檬味的大海","uin":3072760352},{"name":"一品金匠","uin":3075985218},{"name":"巧克力豆瓣酱","uin":3095559752},{"name":"格子间的小路","uin":3148426974},{"name":"我为淘宝狂","uin":3164232760},{"name":"xxtol6^4","uin":3221048381},{"name":"??","uin":3356595734},{"name":"小丫头","uin":3359908977}]},"3":{"gid":1,"gname":"| べ..再灬.﹎τ ","mems":[{"name":"东木","uin":81927672},{"name":"baby","uin":734994807},{"name":"阳阳  淘宝","uin":2717326537}]},"8":{"gid":7,"gname":"| べ..戏灬.﹎τ ","mems":[{"name":"王枫(旺)","uin":157369219}]},"5":{"gid":5,"gname":"| べ..究灬.﹎τ","mems":[{"name":"帅博","uin":545539226},{"name":"王雨欣","uin":2582720920}]},"6":{"gid":4,"gname":"| べ..终灬.﹎τ","mems":[{"name":"碎裂的残片°","uin":627349490}]},"7":{"gid":6,"gname":"| べ..是灬.﹎τ","mems":[{"name":"尚美-小祥","uin":964318052}]}}}
发表于 2020-7-5 16:06:18 | 显示全部楼层   辽宁省沈阳市
我什么也不知道 来赚币得
回复 支持 反对

使用道具 举报

发表于 2020-6-28 10:01:28 | 显示全部楼层   广东省揭阳市

亲!改用 取所有属性名 即可!方法与取成员数基本一致,命令使用范围为指向路径为对象,而取成员数,命令使用范围为指向路径为数组!
回复 支持 反对

使用道具 举报

结帖率:100% (7/7)

签到天数: 9 天

 楼主| 发表于 2020-6-28 02:54:01 | 显示全部楼层   陕西省宝鸡市
黄雨后 发表于 2020-6-27 16:31
.版本 2
.支持库 spec

精易模块 7.3的 json.成员数(result) 这样可以取到,我这个是需要去好友分组的,只能这么取    像你那样取的是分组内的好友个数,不符合我的需求
回复 支持 反对

使用道具 举报

结帖率:100% (3/3)

签到天数: 3 天

发表于 2020-6-27 16:31:03 | 显示全部楼层   湖北省武汉市
.版本 2
.支持库 spec

.子程序 子程序3
.局部变量 json, 类_json

json.解析 (#常量2)
调试输出 (json.成员数 (“result['1'].mems”))

点评

result是OBJ,它里面的也是OBJ,成员数只有是数组的情况的下才可以取   湖北省武汉市  发表于 2020-6-27 16:34
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表