Authored by htoooth

fix

... ... @@ -16,6 +16,8 @@ async function main() {
console.log(`${today} 工作`)
const res1 = await getconfig()
const {sessionkey} = await login()
console.log(`${today} 得到session ${sessionkey}`)
const res2 = await checkin({sessionkey})
console.log(`${today} 签到成功 ${res2}`)
}
... ...
... ... @@ -16,6 +16,8 @@ async function main() {
console.log(`${today} 工作`)
const res1 = await getconfig()
const {sessionkey} = await login()
console.log(`${today} 得到session ${sessionkey}`)
const res2 = await checkout({sessionkey})
console.log(`${today} 签出成功 ${res2}`)
}
... ...
{
"apps": [
{
"name": "checkin",
"name": "yoho-private",
"script": "index.js",
"instances": "1",
"merge_logs": true,
... ...
... ... @@ -20,6 +20,7 @@ async function login() {
return new Promise(function(resolve, reject) {
request.post('/client.do', {
form: data,
json: true,
}, function(err, res, body) {
if (err) {
reject(err)
... ...