fix version 1

This commit is contained in:
2026-09-22 21:15:34 +08:00
parent 9f86366638
commit d63d7e8b3a
277 changed files with 9959 additions and 1514 deletions

View File

@@ -9,6 +9,7 @@ import (
"bsm/full/module/ec/market/internal/models"
pb "bsm/full/module/ec/market/pb"
"git.apinb.com/bsm-sdk/core/errcode"
"git.apinb.com/bsm-sdk/core/service"
)
@@ -22,8 +23,9 @@ func Modify(ctx context.Context, in *pb.MarketAgenctyItem) (reply *pb.IdentitySt
return nil, err
}
identity = auth.Identity
if in.GetIdentity() != "" {
identity = in.GetIdentity()
// 请求中的 identity 只能用于与 token 身份比对,不一致直接拒绝
if in.GetIdentity() != "" && in.GetIdentity() != auth.Identity {
return nil, errcode.ErrPermissionDenied
}
mktModel := &models.MarketAgency{
Name: in.GetName(),