|
|
@@ -2,6 +2,7 @@
|
|
|
declare(strict_types=1);
|
|
|
namespace SixShop\Lakala\Model;
|
|
|
|
|
|
+use SixShop\Lakala\Enum\ReceiverActionEnum;
|
|
|
use SixShop\Lakala\Enum\ReceiverStatusEnum;
|
|
|
use SixShop\Payment\Enum\NumberBizEnum;
|
|
|
use think\db\Query;
|
|
|
@@ -16,6 +17,7 @@ class ProfitShareReceiverModel extends Model
|
|
|
return [
|
|
|
'name' => 'profit_share_receiver',
|
|
|
'type' => [
|
|
|
+ 'action' => ReceiverActionEnum::class,
|
|
|
'status' => ReceiverStatusEnum::class
|
|
|
],
|
|
|
'insert' => ['order_no'],
|
|
|
@@ -27,6 +29,11 @@ class ProfitShareReceiverModel extends Model
|
|
|
{
|
|
|
return generate_number(NumberBizEnum::PROFIT_SHARE_RECEIVER, 5);
|
|
|
}
|
|
|
+
|
|
|
+ public function getActionTextAttr($value, $data)
|
|
|
+ {
|
|
|
+ return $data['action']->toString();
|
|
|
+ }
|
|
|
public function getStatusTextAttr($value, $data)
|
|
|
{
|
|
|
return $data['status']->toString();
|