阅读背景:

可以根据每个呼叫设置@JSONIgnore属性吗?

来源:互联网 

I am working on a site that uses promo codes to potentially provide users free memberships to the site. The level that a member signs up at is an attribute of a promo code object and stored in the database as an int, either 1 or 2. However, the only time the member level attribute is relevant to the UI of the site is for a landing page associated with a specific promo code. So for that case, I don't want the member level to be ignored by JSON. After a user returns to the site and has a promo code object associated with their account, we no longer care about their member level so I would like the member level attribute to be ignored by JSON.I am working on a site that uses promo codes to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: