123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace app\data\model;
- use think\admin\Model;
- class BaseUserDiscount extends Model
- {
-
- public function getItemsAttr($value)
- {
- return empty($value) ? $value : json_decode($value, true);
- }
-
- public function getCreateAtAttr(string $value): string
- {
- return format_datetime($value);
- }
- }
|