Skip to content

Commit

Permalink
add onlyoffice
Browse files Browse the repository at this point in the history
  • Loading branch information
3xxx committed Feb 19, 2018
1 parent ecd9072 commit 8aee3f5
Show file tree
Hide file tree
Showing 9 changed files with 2,133 additions and 27 deletions.
12 changes: 9 additions & 3 deletions controllers/default.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
package controllers

import (
// "encoding/json"
"engineercms/models"
"github.com/astaxie/beego"
"github.com/astaxie/beego/utils/pagination"
// "io"
// "net/http"
// "github.com/astaxie/beego/httplib"
// "bytes"
// "io/ioutil"
// "mime/multipart"
// "os"
"path"
"regexp"
"strconv"
"strings"
"time"
// "github.com/astaxie/beego/httplib"
)

type MainController struct {
Expand Down Expand Up @@ -54,7 +61,7 @@ func (c *MainController) Get() {
if matched == true {
// beego.Info("移动端~")
// c.TplName = "mproject.tpl"
c.Redirect("/project/25002", 301)
c.Redirect("/project/", 301)
} else {
// beego.Info("电脑端!")
achemployee := make([]AchEmployee, 0)
Expand Down Expand Up @@ -258,7 +265,6 @@ func (c *MainController) Getmeritmsapi() {
}

func (c *MainController) Test() {

// beego.Info(c.Ctx.Input.UserAgent())
u := c.Ctx.Input.UserAgent()
// re := regexp.MustCompile("Trident")
Expand Down
Loading

0 comments on commit 8aee3f5

Please sign in to comment.