This commit is contained in:
苏尹岚
2020-11-05 18:01:00 +08:00
parent d954f37d4d
commit c3b653a90a

View File

@@ -52,6 +52,9 @@ func Pay(ctx *jxcontext.Context, orderID, payType int, vendorPayType string) (re
}
)
err = dao.GetEntity(db, order, "OrderID")
if order.ID == 0 {
return result, fmt.Errorf("未找到此订单!")
}
payHandler.Order = order
//如果用户没有对应账单信息就给他生成一条
userBill, err := dao.GetUserBill(db, order.UserID, "")