weixin
This commit is contained in:
@@ -23,6 +23,13 @@ func CreateOrder(ctx *jxcontext.Context, orderType, price int, lng, lat float64)
|
|||||||
db = dao.GetDB()
|
db = dao.GetDB()
|
||||||
order *model.Order
|
order *model.Order
|
||||||
)
|
)
|
||||||
|
authBinds, err := dao.GetUserBindAuthInfo(dao.GetDB(), job.UserID, model.AuthBindTypeAuth, []string{"weixinapp,weixinmini"}, "", "", "")
|
||||||
|
if err != nil {
|
||||||
|
return errCode, err
|
||||||
|
}
|
||||||
|
if len(authBinds) == 0 {
|
||||||
|
return errCode, fmt.Errorf("请绑定微信认证方式!")
|
||||||
|
}
|
||||||
address, dCode, cCode, err := getAddressInfoFromCoord(db, lng, lat)
|
address, dCode, cCode, err := getAddressInfoFromCoord(db, lng, lat)
|
||||||
order = &model.Order{
|
order = &model.Order{
|
||||||
OrderID: utils.Int64ToStr(jxutils.GenOrderNo()),
|
OrderID: utils.Int64ToStr(jxutils.GenOrderNo()),
|
||||||
|
|||||||
Reference in New Issue
Block a user