|
|
@ -10,7 +10,6 @@ import (
|
|
|
|
"recook/internal/model/promotion"
|
|
|
|
"recook/internal/model/promotion"
|
|
|
|
"recook/internal/model/user"
|
|
|
|
"recook/internal/model/user"
|
|
|
|
"recook/internal/model/vend"
|
|
|
|
"recook/internal/model/vend"
|
|
|
|
"recook/internal/service/baseCode"
|
|
|
|
|
|
|
|
"recook/internal/v2/lib/jcook"
|
|
|
|
"recook/internal/v2/lib/jcook"
|
|
|
|
"recook/internal/v2/lib/shama"
|
|
|
|
"recook/internal/v2/lib/shama"
|
|
|
|
"recook/internal/v2/model/flashsale"
|
|
|
|
"recook/internal/v2/model/flashsale"
|
|
|
@ -65,7 +64,10 @@ func CreatePreviewNormalOrder(c *gin.Context) {
|
|
|
|
|
|
|
|
|
|
|
|
sharerId := myInfo.ID
|
|
|
|
sharerId := myInfo.ID
|
|
|
|
if p.InvitationNo != "" {
|
|
|
|
if p.InvitationNo != "" {
|
|
|
|
sharerId = uint(baseCode.Decode(p.InvitationNo))
|
|
|
|
var shareUser user.Information
|
|
|
|
|
|
|
|
dbc.DB.First(&shareUser, "invitation_no=?", p.InvitationNo)
|
|
|
|
|
|
|
|
// sharerId = uint(baseCode.Decode(p.InvitationNo))
|
|
|
|
|
|
|
|
sharerId = shareUser.ID
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if sharerId == 0 {
|
|
|
|
if sharerId == 0 {
|
|
|
|
sharerId = myInfo.ID
|
|
|
|
sharerId = myInfo.ID
|
|
|
|