无法解码我在php中编码的电晕sdk中的json变量

时间:2017-01-12 20:10:57

标签: lua corona

local URL = "http://localhost:8080/corona/send.php?email=" .. sender .. "&sendto=" .. sendto .. "&message=" .. message;
            --local URL="http://localhost:8080/corona/fetch.php?usr="..namee
            local response = http.request(URL)
    if response == nil then
    print("No Dice")
    else
    local data=json.decode(response)
    print ("something ----:"..data[1]);--This part gives error

0 个答案:

没有答案