Open MowChann opened 4 years ago
got it! thx! (:D
for x in response: dic[x['userid']] = [x['id'], float(x['money']), x['nick'], x['stime']]
一个userid可以有多个订单,你这样写的话,较新的订单会一直被旧订单覆盖
这里id是订单的id,不会重覆,所以你可以写成
for x in response: dic[x['id']] = [x['userid'], float(x['money']), x['nick'], x['stime']]
for x in response: dic[x['userid']] = [x['id'], float(x['money']), x['nick'], x['stime']]
一个用户id可以有多个订单,你这样写的话,较新的订单会一直被旧订单覆盖 这里id是订单的id,不会重覆,所以你可以写成
for x in response: dic[x['id']] = [x['userid'], float(x['money']), x['nick'], x['stime']]
你好,我写的时候桃叭response内容还没更新,4.13之后更新了response接口(这个issue上面的回复内容就在讲这个问题) 不过我写完了就没对这个脚本进行维护和更新,也没更新的必要Orz,那麻烦您改一下吧
https://github.com/41xu/SNH48-Group-s-QQ-bot/blob/23fd64457e48700b6434c7e92183a0536b7f8c7d/taoba/taoba.py#L105-L117