Commit 8212eb9d by 王栋源

wdy

parent 4ea4666a
......@@ -36,9 +36,15 @@ class TmjsonfileCtl extends CtlBase {
var upl=await self.execS.execGet(null,url);
console.log(upl);
if(upl.stdout){
return { status: 0, msg: "成功" };
var obj = { zc_url: "https://partner-sync-file.oss-cn-beijing.aliyuncs.com/1956270874932536/"+ strdate};
var rtn = await this.service.create(obj);
if (rtn) {
return { status: 0, msg: "成功" };
}else{
return { status: -201, msg: "创建失败" };
}
}else {
return { status: -201, msg: "创建失败" };
return { status: -202, msg: "上传失败" };
}
} else {
return { status: -200, msg: "json文件生成失败" };
......
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