Commit a6784398 by 冷斌

小站同步

parent e957ad74
...@@ -8,11 +8,11 @@ ...@@ -8,11 +8,11 @@
// 'WEBADDRESS': 'http://mengyazhibo.com/api/public/' // 'WEBADDRESS': 'http://mengyazhibo.com/api/public/'
// } // }
module.exports = { module.exports = {
'REDISHOST' : '127.0.0.1', 'REDISHOST' : 'redis',
'REDISPASS' : '', 'REDISPASS' : '',
'REDISPORT' : '6379', 'REDISPORT' : '6379',
'TOKEN' : '1234567', 'TOKEN' : '1234567',
'sign_key' : '76576076c1f5f657b634e966c8836a06', 'sign_key' : '76576076c1f5f657b634e966c8836a06',
'socket_port': '9091', 'socket_port': '9091',
'WEBADDRESS': 'http://mengyazhibo.com/api/public/' 'WEBADDRESS': 'http://www.seals-live.com/api/public/'
} }
\ No newline at end of file
var site='http://mengyazhibo.com'; var site='http://www.seals-live.com';
var schedule = require("node-schedule"); var schedule = require("node-schedule");
var request = require('request'); var request = require('request');
...@@ -49,13 +49,13 @@ function setVal(lastid){ ...@@ -49,13 +49,13 @@ function setVal(lastid){
if(body!='NO'){ if(body!='NO'){
var strs=[]; var strs=[];
strs=body.split("-"); strs=body.split("-");
// console.log(strs); // console.log(strs);
if(strs[0]=='OK' && strs[1]!='0'){ if(strs[0]=='OK' && strs[1]!='0'){
setVal(strs[1]); setVal(strs[1]);
} }
} }
}); });
} }
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