data_center/app/common/model/user/UserIntegral.php

16 lines
304 B
PHP

<?php
namespace app\common\model\user;
use app\common\model\BaseModel;
class UserIntegral extends BaseModel
{
protected $name = 'user_integral';
public function getTypeTextAttr($value,$data): string
{
$type = [0=>'支出',1=>'收入'];
return $type[$data['type']];
}
}