You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
659 B

  1. <?php
  2. namespace app\admin\model\unishop;
  3. use think\Model;
  4. /**
  5. * 分类模型
  6. */
  7. class OrderRefund extends Model
  8. {
  9. // 表名
  10. protected $name = 'unishop_order_refund';
  11. // 开启自动写入时间戳字段
  12. protected $autoWriteTimestamp = 'int';
  13. // 定义时间戳字段名
  14. protected $createTime = 'createtime';
  15. protected $updateTime = 'updatetime';
  16. public function getReceivingStatusTextAttr()
  17. {
  18. return ['0' => '未收到', '1' => '已收到'];
  19. }
  20. public function getServiceTypeTextAttr()
  21. {
  22. return ['0' => '我要退款(无需退货)', '1' => '我要退货退款', '2' => '换货'];
  23. }
  24. }