Compare commits

..

No commits in common. "15507c6cfcb7df008ad5382573a4809019f79552" and "16f397d507f296edf46afbc893f681b6a984c987" have entirely different histories.

1 changed files with 1 additions and 5 deletions

View File

@ -178,10 +178,6 @@ func CIDCallback(c *gin.Context) {
return
}
res := dao.FindCIDByIDAndToken(cid, token)
if res.ID == 0 {
c.JSON(200, gin.H{"error": "CID not found by id and token", "code": proto.OperationFailed, "message": "failed"})
return
}
user := dao.FindUserByUserID(res.Auth_id)
if user.Run == false {
@ -219,6 +215,6 @@ echo "end"`
if err3 != nil {
err3_info = err3.Error()
}
//fmt.Println("bash content:", scriptContent)
fmt.Println("bash content:", scriptContent)
dao.CreateRunLog(id, authID, scriptContent, out.String(), err3_info) //添加执行日志
}