test
This commit is contained in:
@@ -24,9 +24,7 @@ func CreateOrder(ctx *jxcontext.Context, orderType, price int, lng, lat float64)
|
||||
order *model.Order
|
||||
)
|
||||
authBinds, err := dao.GetUserBindAuthInfo(dao.GetDB(), ctx.GetUserID(), model.AuthBindTypeAuth, []string{"weixinapp,weixinmini"}, "", "", "")
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
fmt.Println("tttttttttttt", utils.Format4Output(authBinds, false))
|
||||
if len(authBinds) == 0 {
|
||||
return "", fmt.Errorf("请绑定微信认证方式!")
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ package dao
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
@@ -62,8 +61,6 @@ func GetUserBindAuthInfo(db *DaoDB, userID string, bindType int, typeList []stri
|
||||
sqlParams = append(sqlParams, typeID)
|
||||
}
|
||||
sql += " ORDER BY t1.type"
|
||||
fmt.Println(sql)
|
||||
fmt.Println(sqlParams)
|
||||
err = GetRows(db, &authList, sql, sqlParams...)
|
||||
return authList, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user