Commit 5a28a969 by 蒋勇

d

parent 839f74c3
...@@ -36,8 +36,6 @@ class TaskBase{ ...@@ -36,8 +36,6 @@ class TaskBase{
await this.subPostTask(); await this.subPostTask();
this.redisClient.client.quit(); this.redisClient.client.quit();
this.redisClient.subclient.quit(); this.redisClient.subclient.quit();
} }
async doTask(params){ async doTask(params){
try { try {
......
...@@ -37,11 +37,11 @@ class OSSClient{ ...@@ -37,11 +37,11 @@ class OSSClient{
} }
} }
module.exports=OSSClient; module.exports=OSSClient;
var oss=new OSSClient(); // var oss=new OSSClient();
var key="tmpl2.zip" // var key="tmpl2.zip"
oss.upfile(key,"./tmpl2.zip").then(function(result){ // oss.upfile(key,"./tmpl2.zip").then(function(result){
console.log(result); // console.log(result);
}); // });
// oss.downfile(key).then(function(result){ // oss.downfile(key).then(function(result){
// console.log(result); // console.log(result);
// }); // });
...@@ -155,7 +155,13 @@ class RedisClient { ...@@ -155,7 +155,13 @@ class RedisClient {
} }
module.exports = RedisClient; module.exports = RedisClient;
// (async ()=>{
// var c=new RedisClient();
// await c.set("testtest",1);
// var tt=await c.get("testtest");
// console.log("dddddddddddddddddddddddd");
// console.log(tt);
// })()
// client.keys('*').then(s=>{ // client.keys('*').then(s=>{
// console.log(s); // console.log(s);
// }); // });
......
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