From 1f15e7843af48cd8a67c046c03793a37d31816c5 Mon Sep 17 00:00:00 2001 From: Bestony Date: Fri, 8 Jan 2016 01:43:44 +0800 Subject: [PATCH] Create getLiveinfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bmob后端代码 --- getLiveinfo | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 getLiveinfo diff --git a/getLiveinfo b/getLiveinfo new file mode 100644 index 0000000..9fbef4f --- /dev/null +++ b/getLiveinfo @@ -0,0 +1,10 @@ +function onRequest(request, response, modules) { + + var http=modules.oHttp; + http('https://api.kiwivm.it7.net/v1/getLiveServiceInfo?veid='+request.body.veid+'&api_key='+request.body.key, function (error, res, body) { + if (!error && res.statusCode == 200) { + response.send(body); + } + }) +} +