Commit 04531254 authored by ganjingcun's avatar ganjingcun

ads

parent 2ac5d7ef
This diff is collapsed.
......@@ -6,27 +6,27 @@ var moment = require('moment')
// var url = 'https://mycard.moe/ygopro/api/score'
// var url = 'http://localhost:3000/api/score'
// console.log( moment().format())
// superagent
// .post(url)
// .send({
// accesskey: "XnvGjNG8jttfjYWhtqtgRfWBtyEwjMaF",
// usernameA: "Joe1991",
// usernameB: "zh99998",
// userscoreA: 1,
// userscoreB: 1,
// start: moment().format(),
// end: moment().add(6,'m').format(),
// arena: 'athletic' // 'athletic' 竞技 or 'entertain' 娱乐
// })
// .end(function (err, res) {
// if (err) {
// console.log(err)
// return
// }
// console.log(res.text)
// })
var url = 'http://localhost:3000/api/score'
console.log( moment().format())
superagent
.post(url)
.send({
accesskey: "XnvGjNG8jttfjYWhtqtgRfWBtyEwjMaF",
usernameA: "Joe1991",
usernameB: "zh99998",
userscoreA: 1,
userscoreB: 2,
start: moment().format(),
end: moment().add(6,'m').format(),
arena: 'athletic' // 'athletic' 竞技 or 'entertain' 娱乐
})
.end(function (err, res) {
if (err) {
console.log(err)
return
}
console.log(res.text)
})
// var Utils = require('./utils/utils')
......@@ -42,26 +42,26 @@ var moment = require('moment')
var url = 'http://gate-d-wzs.592you.comgate-d-wzs.592you.com/users/login'
console.log(moment().format())
superagent
.post(url)
.send({
"\/api\/users\/login": "",
"channel": "H5_weixin",
"server_ext_for_login":"{\"version\": \"03586d01_977\"}",
"code": "06110Di20G5jcG1Dl2i209hZi2010DiB",
"is_debug_mode": "false",
"plugin_id": "347",
"private_key": "BA26F2670407E0B8664DDA544026FA54",
"state": "public",
"uapi_key": "FA90DD7F-F026-10BD-5B17-CAE9DAB0AAD3",
"uapi_secret": "890702b0854094bdd285bf583eff98d3"
})
.end(function (err, res) {
if (err) {
console.log(err)
return
}
console.log(res.text)
})
\ No newline at end of file
// var url = 'http://gate-d-wzs.592you.comgate-d-wzs.592you.com/users/login'
// console.log(moment().format())
// superagent
// .post(url)
// .send({
// "\/api\/users\/login": "",
// "channel": "H5_weixin",
// "server_ext_for_login":"{\"version\": \"03586d01_977\"}",
// "code": "06110Di20G5jcG1Dl2i209hZi2010DiB",
// "is_debug_mode": "false",
// "plugin_id": "347",
// "private_key": "BA26F2670407E0B8664DDA544026FA54",
// "state": "public",
// "uapi_key": "FA90DD7F-F026-10BD-5B17-CAE9DAB0AAD3",
// "uapi_secret": "890702b0854094bdd285bf583eff98d3"
// })
// .end(function (err, res) {
// if (err) {
// console.log(err)
// return
// }
// console.log(res.text)
// })
\ 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