zm
2021-04-01 802c31297a1ae5b8c2e8fb5c62e9790dfc5d7583
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;
    }