mytest.lua 233 B

12345
  1. local threadList={}
  2. threadList.items={{['tid']=1,['post']='post1'},{['tid']=2,['post']='post2'} }
  3. table.insert(threadList.items,{['tid']=3,['post']=3})
  4. threadList.loseds={['120']=2,['121']=7,['122']=9}
  5. return cjson.encode(threadList)