增加驳回打款凭证

This commit is contained in:
2023-03-21 17:00:40 +08:00
parent 856385d663
commit 9ef806d160
5 changed files with 71 additions and 33 deletions

View File

@@ -8,6 +8,7 @@ use Encore\Admin\Grid;
use Exception;
use Modules\User\Http\Controllers\Admin\Actions\Pay;
use Modules\User\Http\Controllers\Admin\Actions\Refund;
use Modules\User\Http\Controllers\Admin\Actions\Reject;
use Modules\User\Models\Identity;
use Modules\User\Models\Order;
@@ -38,6 +39,9 @@ class OrderController extends AdminController
if ($actions->row->canPay()) {
$actions->add(new Pay());
}
if ($actions->row->canPay()) {
$actions->add(new Reject());
}
if ($actions->row->canRefund()) {
$actions->add(new Refund());