Commit 04531254 authored by ganjingcun's avatar ganjingcun

ads

parent 2ac5d7ef
This diff is collapsed.
...@@ -6,27 +6,27 @@ var moment = require('moment') ...@@ -6,27 +6,27 @@ var moment = require('moment')
// var url = 'https://mycard.moe/ygopro/api/score' // var url = 'https://mycard.moe/ygopro/api/score'
// var url = 'http://localhost:3000/api/score' var url = 'http://localhost:3000/api/score'
// console.log( moment().format()) console.log( moment().format())
// superagent superagent
// .post(url) .post(url)
// .send({ .send({
// accesskey: "XnvGjNG8jttfjYWhtqtgRfWBtyEwjMaF", accesskey: "XnvGjNG8jttfjYWhtqtgRfWBtyEwjMaF",
// usernameA: "Joe1991", usernameA: "Joe1991",
// usernameB: "zh99998", usernameB: "zh99998",
// userscoreA: 1, userscoreA: 1,
// userscoreB: 1, userscoreB: 2,
// start: moment().format(), start: moment().format(),
// end: moment().add(6,'m').format(), end: moment().add(6,'m').format(),
// arena: 'athletic' // 'athletic' 竞技 or 'entertain' 娱乐 arena: 'athletic' // 'athletic' 竞技 or 'entertain' 娱乐
// }) })
// .end(function (err, res) { .end(function (err, res) {
// if (err) { if (err) {
// console.log(err) console.log(err)
// return return
// } }
// console.log(res.text) console.log(res.text)
// }) })
// var Utils = require('./utils/utils') // var Utils = require('./utils/utils')
...@@ -42,26 +42,26 @@ var moment = require('moment') ...@@ -42,26 +42,26 @@ var moment = require('moment')
var url = 'http://gate-d-wzs.592you.comgate-d-wzs.592you.com/users/login' // var url = 'http://gate-d-wzs.592you.comgate-d-wzs.592you.com/users/login'
console.log(moment().format()) // console.log(moment().format())
superagent // superagent
.post(url) // .post(url)
.send({ // .send({
"\/api\/users\/login": "", // "\/api\/users\/login": "",
"channel": "H5_weixin", // "channel": "H5_weixin",
"server_ext_for_login":"{\"version\": \"03586d01_977\"}", // "server_ext_for_login":"{\"version\": \"03586d01_977\"}",
"code": "06110Di20G5jcG1Dl2i209hZi2010DiB", // "code": "06110Di20G5jcG1Dl2i209hZi2010DiB",
"is_debug_mode": "false", // "is_debug_mode": "false",
"plugin_id": "347", // "plugin_id": "347",
"private_key": "BA26F2670407E0B8664DDA544026FA54", // "private_key": "BA26F2670407E0B8664DDA544026FA54",
"state": "public", // "state": "public",
"uapi_key": "FA90DD7F-F026-10BD-5B17-CAE9DAB0AAD3", // "uapi_key": "FA90DD7F-F026-10BD-5B17-CAE9DAB0AAD3",
"uapi_secret": "890702b0854094bdd285bf583eff98d3" // "uapi_secret": "890702b0854094bdd285bf583eff98d3"
}) // })
.end(function (err, res) { // .end(function (err, res) {
if (err) { // if (err) {
console.log(err) // console.log(err)
return // return
} // }
console.log(res.text) // console.log(res.text)
}) // })
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment