This commit is contained in:
苏尹岚
2020-11-20 09:54:28 +08:00
parent 7808360d1c
commit bccf4b8d4f

View File

@@ -23,12 +23,12 @@ func CreateOrder(ctx *jxcontext.Context, orderType, price int, lng, lat float64)
db = dao.GetDB()
order *model.Order
)
authBinds, err := dao.GetUserBindAuthInfo(dao.GetDB(), job.UserID, model.AuthBindTypeAuth, []string{"weixinapp,weixinmini"}, "", "", "")
authBinds, err := dao.GetUserBindAuthInfo(dao.GetDB(), ctx.GetUserID(), model.AuthBindTypeAuth, []string{"weixinapp,weixinmini"}, "", "", "")
if err != nil {
return errCode, err
return "", err
}
if len(authBinds) == 0 {
return errCode, fmt.Errorf("请绑定微信认证方式!")
return "", fmt.Errorf("请绑定微信认证方式!")
}
address, dCode, cCode, err := getAddressInfoFromCoord(db, lng, lat)
order = &model.Order{