HealthyOrderProduct.php 490 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace app\admin\model;
  3. use support\Db;
  4. use support\Model;
  5. /**
  6. * 健康订单
  7. * Class Users
  8. * @package app\admin\model
  9. */
  10. class HealthyOrderProduct extends Model
  11. {
  12. /**
  13. *
  14. * The table associated with the model.
  15. *
  16. * @var string
  17. */
  18. protected $table = 'healthy_order_product';
  19. public $timestamps = false;
  20. //时间格式
  21. public function getOrderCreateTimeAttribute($value)
  22. {
  23. return date('Y-m-d H:i:s', $value);
  24. }
  25. }