diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index 091a6c16..11d5c11b 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -294,7 +294,7 @@ export default class acclist extends React.Component { return false } for (let i = 0; i < this.state.distdata.length; i++) { - if(this.state.exchangeType == 1 && String(this.state.distdata[i].period_type) != '1' && this.state.distdata[i].period_num != this.state.distdata[i].restrict){ + if(this.state.distdata[i].recharge_type == 1 && String(this.state.distdata[i].period_type) != '1' && this.state.distdata[i].period_num != this.state.distdata[i].restrict){ return Notify.error(`兑换码绑定数必须等于周期次数`) } }