diff --git a/src/components/knockGold/index.jsx b/src/components/knockGold/index.jsx index 3723436c..02e43544 100644 --- a/src/components/knockGold/index.jsx +++ b/src/components/knockGold/index.jsx @@ -462,8 +462,9 @@ export default class addKnockGold extends Component { } if ( - this.state.TimeDiffer < Number(this.state.model.effect_date) || - 1 > Number(this.state.model.effect_date) + (this.state.TimeDiffer < Number(this.state.model.effect_date) || + 1 > Number(this.state.model.effect_date)) && + this.state.model.usable_time === 'received' ) { Notify.error( `有限期不允许大于生效时间段 注:当前有效期最小时间为 1 天,最大时间为 ${this.state.TimeDiffer} 天`