增加驳回打款凭证
This commit is contained in:
@@ -9,7 +9,7 @@ use Modules\User\Models\Order;
|
||||
class Pay extends RowAction
|
||||
{
|
||||
|
||||
public $name = '支付测试-正式版本移除';
|
||||
public $name = '通过';
|
||||
|
||||
public function handle(Order $order): Response
|
||||
{
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user