FinanceDetail.php 635 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class FinanceDetail extends Model
  5. {
  6. protected $table = "finance_detail"; //指定表
  7. const CREATED_AT = 'crt_time';
  8. const UPDATED_AT = 'upd_time';
  9. protected $dateFormat = 'U';
  10. public static $status = [
  11. 0 => '未确认',
  12. 1 => '确认中',
  13. 2 => '已确认',
  14. ];
  15. const Payment_one = -1;
  16. const Payment_two = 0;
  17. const Payment_three = 1;
  18. const Payment_four = 2;
  19. public static $payment_status = [
  20. -1 => 'FAILED',
  21. 0 => 'DEFAULT',
  22. 1 => 'PENDING',
  23. 2 => 'SUCCESS',
  24. ];
  25. }