Commit 5a28a969 by 蒋勇

d

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