mirror of https://github.com/ouqiang/gocron
删除调试代码
parent
26d5c1cba9
commit
dc478dd1e6
|
@ -15,7 +15,7 @@ import (
|
|||
type InstallForm struct {
|
||||
DbType string `binding:"IN(mysql)"`
|
||||
DbHost string `binding:"Required"`
|
||||
DbPort int `binding:"Required"` // todo 限制端口范围1-65535, 为什么规则未生效?
|
||||
DbPort int `binding:"Required;Range(1-65535)"` // todo 限制端口范围1-65535, 为什么规则未生效?
|
||||
DbUsername string `binding:"Required"`
|
||||
DbPassword string `binding:"Required"`
|
||||
DbName string `binding:"Required"`
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package service
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/ouqiang/cron-scheduler/models"
|
||||
"github.com/ouqiang/cron-scheduler/modules/ansible"
|
||||
"github.com/ouqiang/cron-scheduler/modules/crontask"
|
||||
|
@ -131,7 +130,6 @@ func createTaskLog(taskId int) (int, error) {
|
|||
}
|
||||
|
||||
func updateTaskLog(taskLogId int, result string, err error) (int64, error) {
|
||||
fmt.Println(taskLogId)
|
||||
taskLogModel := new(models.TaskLog)
|
||||
var status models.Status
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue