mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-23 09:09:57 +02:00
fix request bug
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
|
||||
if not REQUEST.query.json then
|
||||
if not REQUEST.json then
|
||||
fail("unknown request")
|
||||
end
|
||||
local rq = (JSON.decodeString(REQUEST.query.json))
|
||||
local rq = (JSON.decodeString(REQUEST.json))
|
||||
local to = "xsang.le@gmail.com"
|
||||
local from = "From: "..rq.email.."\n"
|
||||
local suject = "Subject: "..rq.subject.."\n"
|
||||
|
@ -1,8 +1,8 @@
|
||||
|
||||
if not REQUEST.query.json then
|
||||
if not REQUEST.json then
|
||||
fail("unknown request")
|
||||
end
|
||||
local rq = (JSON.decodeString(REQUEST.query.json))
|
||||
local rq = (JSON.decodeString(REQUEST.json))
|
||||
local sample = {name = "toto", email = "toto@mail.fr"}
|
||||
local db = require("db.model").get("mrsang","subscribers",sample)
|
||||
|
||||
|
Reference in New Issue
Block a user