You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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']]
https://github.com/41xu/SNH48-Group-s-QQ-bot/blob/23fd64457e48700b6434c7e92183a0536b7f8c7d/taoba/taoba.py#L105-L117
The text was updated successfully, but these errors were encountered: