Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cart类中的setPrice #13

Open
MyFutureIsAMess opened this issue Oct 27, 2021 · 0 comments
Open

Cart类中的setPrice #13

MyFutureIsAMess opened this issue Oct 27, 2021 · 0 comments

Comments

@MyFutureIsAMess
Copy link

public void setPrice(double price) { this.price = price; }
今天作为购物车类的实现,其中似乎不应该存在设置价格的方法。所有的价格应该以其中的商品为准,暴露这样的借口存在安全漏洞。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant