- handle table config error.
This commit is contained in:
@@ -115,7 +115,7 @@ func initElm() {
|
||||
if token == "" {
|
||||
db := orm.NewOrm()
|
||||
var tokenInfo []orm.Params
|
||||
num, err := db.Raw("SELECT * FROM thirdpartytoken WHERE thirdparty='eleme'").Values(&tokenInfo)
|
||||
num, err := db.Raw("SELECT * FROM config WHERE thirdparty='eleme'").Values(&tokenInfo)
|
||||
if err != nil || num != 1 {
|
||||
panic(err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user