修改自动安装
This commit is contained in:
@@ -7,9 +7,9 @@
|
|||||||
package controllers
|
package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/PPGo_Job/libs"
|
|
||||||
"github.com/PPGo_Job/models"
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
|
"github.com/george518/PPGo_Job/libs"
|
||||||
|
"github.com/george518/PPGo_Job/models"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
package controllers
|
package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"PPGo_Job/libs"
|
|
||||||
"PPGo_Job/models"
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
|
"github.com/george518/PPGo_Job/libs"
|
||||||
|
"github.com/george518/PPGo_Job/models"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
package controllers
|
package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/PPGo_Job/jobs"
|
|
||||||
"github.com/PPGo_Job/libs"
|
|
||||||
"github.com/PPGo_Job/models"
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
"github.com/astaxie/beego/utils"
|
"github.com/astaxie/beego/utils"
|
||||||
|
"github.com/george518/PPGo_Job/jobs"
|
||||||
|
"github.com/george518/PPGo_Job/libs"
|
||||||
|
"github.com/george518/PPGo_Job/models"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
package controllers
|
package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
crons "github.com/PPGo_Job/crons"
|
|
||||||
"github.com/PPGo_Job/jobs"
|
|
||||||
"github.com/PPGo_Job/libs"
|
|
||||||
"github.com/PPGo_Job/models"
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
|
crons "github.com/george518/PPGo_Job/crons"
|
||||||
|
"github.com/george518/PPGo_Job/jobs"
|
||||||
|
"github.com/george518/PPGo_Job/libs"
|
||||||
|
"github.com/george518/PPGo_Job/models"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
package jobs
|
package jobs
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"PPGo_Job/crons"
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
|
"github.com/george518/PPGo_Job/crons"
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ package jobs
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/PPGo_Job/models"
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
|
"github.com/george518/PPGo_Job/models"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ package jobs
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/PPGo_Job/mail"
|
|
||||||
"github.com/PPGo_Job/models"
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
|
"github.com/george518/PPGo_Job/mail"
|
||||||
|
"github.com/george518/PPGo_Job/models"
|
||||||
"html/template"
|
"html/template"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
|
|||||||
8
main.go
8
main.go
@@ -1,9 +1,12 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/PPGo_Job/models"
|
|
||||||
_ "github.com/PPGo_Job/routers"
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
|
"github.com/george518/PPGo_Job/controllers"
|
||||||
|
"github.com/george518/PPGo_Job/jobs"
|
||||||
|
_ "github.com/george518/PPGo_Job/mail"
|
||||||
|
"github.com/george518/PPGo_Job/models"
|
||||||
|
_ "github.com/george518/PPGo_Job/routers"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -13,6 +16,7 @@ const (
|
|||||||
func init() {
|
func init() {
|
||||||
//初始化数据模型
|
//初始化数据模型
|
||||||
models.Init()
|
models.Init()
|
||||||
|
jobs.InitJobs()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user