查遍了百度也不知道该怎么弄,只能提问了,请问是代码的问题还是?
本人刚学了几天的Lua,确实是不知道该如何解决这问题、、
Bot型号为Dice! by 溯洄 & Shiki Ver 2.6.3fixed(606)
这是代码
下面是报错信息
银调用D:\BOT\bot\Dice3035873217\plugin\setu_ver2.lua函数setu失败!
D:\BOT\bot\Dice3035873217\plugin\setu_ver2.lua:36: attempt to index a nil value (field ‘urls’)
银是我Bot的名字
这是网站网址输出的json的一个例子
{"error":"","data":[{"pid":96625050,"p":0,"uid":6049901,"title":"䓅亚","author":"鬼針草","r18":false,"width":2117,"height":1500,"tags":["䓅亚","白タイツ","白裤袜","タイツ越しのパンツ","穿透丝袜的内裤","ぱんつ","胖次","足裏","脚底","パンスト","丝袜","マニキュア","美甲","䓅亜(きあ)","白タイツ足裏","白丝足底"],"ext":"jpg","uploadDate":1646194802000,"urls":{"regular":"https://i.pixiv.cat/img-master/img/2022/03/02/13/20/02/96625050_p0_master1200.jpg"}}]}