fix
This commit is contained in:
parent
daeea52d64
commit
2578d6e4da
|
@ -50,7 +50,11 @@ type CartSnapshot struct {
|
|||
type ProductInfo struct {
|
||||
ProductName string `json:"product_name"` //产品名
|
||||
ProductSn string `json:"product_sn"` //产品sn
|
||||
ProductWebsiteUnit string `json:"product_website_unit"` //产品前台网站单位
|
||||
ProductWebsiteUnit ProductWebsiteUnit `json:"product_website_unit"` //产品前台网站单位
|
||||
}
|
||||
type ProductWebsiteUnit struct {
|
||||
Singular string `json:"singular"`
|
||||
Complex string `json:"complex"`
|
||||
}
|
||||
type ModelInfo struct {
|
||||
ModelJson interface{} `json:"model_json"` //模型设计json数据
|
||||
|
|
|
@ -242,7 +242,10 @@ func (l *AddToCartLogic) AddToCart(req *types.AddToCartReq, userinfo *auth.UserI
|
|||
ProductInfo: gmodel.ProductInfo{
|
||||
ProductName: *productInfo.Title,
|
||||
ProductSn: *productInfo.Sn,
|
||||
ProductWebsiteUnit: req.ProductWebsiteUnit,
|
||||
ProductWebsiteUnit: gmodel.ProductWebsiteUnit{
|
||||
Singular: "",
|
||||
Complex: "",
|
||||
},
|
||||
},
|
||||
UserDiyInformation: gmodel.UserDiyInformation{
|
||||
Phone: req.DiyInfo.Phone,
|
||||
|
|
Loading…
Reference in New Issue
Block a user