更改微信支付号;代理新增是否显示价格

This commit is contained in:
2025-06-26 16:59:06 +08:00
parent 0c54504f40
commit 6a1d18926d
12 changed files with 87 additions and 78 deletions

View File

@@ -101,6 +101,7 @@ func (l *GeneratingLinkLogic) GeneratingLink(req *types.AgentGeneratingLinkReq)
agentLink.LinkIdentifier = encrypted
agentLink.ProductId = productModel.Id
agentLink.Price = price
agentLink.ShowPrice = req.ShowPrice
_, err = l.svcCtx.AgentLinkModel.Insert(l.ctx, nil, &agentLink)
if err != nil {
return nil, errors.Wrapf(xerr.NewErrCode(xerr.DB_ERROR), "生成代理链接, %v", err)

View File

@@ -41,6 +41,7 @@ func (l *GetLinkDataLogic) GetLinkData(req *types.GetLinkDataReq) (resp *types.G
copier.Copy(&product, productModel)
product.SellPrice = agentLinkModel.Price
return &types.GetLinkDataResp{
Product: product,
ShowPrice: agentLinkModel.ShowPrice,
Product: product,
}, nil
}