Browse Source

rdluck资源包更换为线上Git

xingzai 3 năm trước cách đây
mục cha
commit
9cfa4ea0d9

+ 1 - 1
controllers/base_auth.go

@@ -12,7 +12,7 @@ import (
 	"hongze/hongze_cygxzs/models"
 	"hongze/hongze_cygxzs/utils"
 
-	"rdluck_tools/log"
+	"github.com/rdlucklib/rdluck_tools/log"
 )
 
 var apiLog *log.Log

+ 1 - 1
models/cygx_user_record.go

@@ -1,7 +1,7 @@
 package models
 
 import (
-	"rdluck_tools/orm"
+	"github.com/rdlucklib/rdluck_tools/orm"
 	"time"
 )
 

+ 1 - 1
models/db.go

@@ -5,7 +5,7 @@ import (
 	"hongze/hongze_cygxzs/utils"
 	"time"
 
-	"rdluck_tools/orm"
+	"github.com/rdlucklib/rdluck_tools/orm"
 )
 
 func init() {

+ 1 - 1
models/db_base.go

@@ -3,7 +3,7 @@
 package models
 
 import (
-	"rdluck_tools/orm"
+	"github.com/rdlucklib/rdluck_tools/orm"
 )
 
 // 是否存在

+ 2 - 2
models/session.go

@@ -1,7 +1,7 @@
 package models
 
 import (
-	"rdluck_tools/orm"
+	"github.com/rdlucklib/rdluck_tools/orm"
 	"time"
 )
 
@@ -50,4 +50,4 @@ func GetTokenByOpenId(openId string) (item *CygxSession, err error) {
 	o := orm.NewOrm()
 	err = o.Raw(sql, openId).QueryRow(&item)
 	return
-}
+}

+ 1 - 1
models/user.go

@@ -1,8 +1,8 @@
 package models
 
 import (
+	"github.com/rdlucklib/rdluck_tools/orm"
 	"hongze/hongze_cygxzs/utils"
-	"rdluck_tools/orm"
 	"time"
 )
 

+ 1 - 1
models/user_record.go

@@ -1,7 +1,7 @@
 package models
 
 import (
-	"rdluck_tools/orm"
+	"github.com/rdlucklib/rdluck_tools/orm"
 	"time"
 )
 

+ 1 - 1
models/wx_user.go

@@ -1,7 +1,7 @@
 package models
 
 import (
-	"rdluck_tools/orm"
+	"github.com/rdlucklib/rdluck_tools/orm"
 	"time"
 )
 

+ 5 - 5
models/wx_user_code.go

@@ -1,7 +1,7 @@
 package models
 
 import (
-	"rdluck_tools/orm"
+	"github.com/rdlucklib/rdluck_tools/orm"
 	"time"
 )
 
@@ -23,9 +23,9 @@ func AddWxUserCode(item *WxUserCode) (lastId int64, err error) {
 	return
 }
 
-func GetWxUserCode(wxCode string)(item *WxUserCode,err error)  {
+func GetWxUserCode(wxCode string) (item *WxUserCode, err error) {
 	o := orm.NewOrm()
-	sql:=`SELECT * FROM wx_user_code WHERE wx_code=? `
-	err=o.Raw(sql,wxCode).QueryRow(&item)
+	sql := `SELECT * FROM wx_user_code WHERE wx_code=? `
+	err = o.Raw(sql, wxCode).QueryRow(&item)
 	return
-}
+}

+ 1 - 1
models/wx_user_log.go

@@ -1,7 +1,7 @@
 package models
 
 import (
-	"rdluck_tools/orm"
+	"github.com/rdlucklib/rdluck_tools/orm"
 	"time"
 )
 

+ 1 - 1
services/wechat.go

@@ -4,9 +4,9 @@ import (
 	"encoding/json"
 	"errors"
 	"fmt"
+	"github.com/rdlucklib/rdluck_tools/http"
 	"hongze/hongze_cygxzs/models"
 	"hongze/hongze_cygxzs/utils"
-	"rdluck_tools/http"
 	"strconv"
 	"strings"
 	"time"

+ 1 - 1
utils/config.go

@@ -3,7 +3,7 @@ package utils
 import (
 	"fmt"
 	beego "github.com/beego/beego/v2/adapter"
-	"rdluck_tools/cache"
+	"github.com/rdlucklib/rdluck_tools/cache"
 )
 
 var (