plugins/exchange/forms/api/EOrderSubmitForm.php
@@ -85,12 +85,12 @@ $f->validate->libraryModel = $exchangeGoods->library; $f->validate->hasLibrary(); $f->validate->hasDisableLibrary(); //兑换码有效期判断 //提货卡有效期判断 if ( $f->validate->libraryModel->expire_type === 'fixed' && $f->validate->libraryModel->expire_end_time < date('Y-m-d H:i:s') ) { throw new OrderException('无法生成有效兑换码'); throw new OrderException('无法生成有效提货卡'); } return true; }