admin/app/backend/modules/refund/services/button/Consensus.php

43 lines
708 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2020/12/10
* Time: 17:14
*/
namespace app\backend\modules\refund\services\button;
class Consensus extends RefundButtonBase
{
public function getApi()
{
return 'refund.vue-operation.consensus';
}
public function getName()
{
return '手动退款';
}
public function getValue()
{
return 2;
}
public function enable()
{
return $this->refund->isRefunding();
}
public function getType()
{
return self::TYPE_PRIMARY;
}
public function getDesc()
{
return '您用其他方式进行退款或者退款金额为0时';
}
}