Collect.php 636 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Models;
  3. class Collect extends BaseModel
  4. {
  5. protected $table = 'collects';
  6. // ✅ 允许批量赋值的字段
  7. protected $fillable = [
  8. 'from_address',
  9. 'to_address',
  10. 'amount',
  11. 'coin',
  12. 'net',
  13. 'status',
  14. 'txid',
  15. 'fee',
  16. 'confirmations',
  17. 'block_number',
  18. 'remark',
  19. ];
  20. const STATUS_STAY = 0;
  21. const STATUS_START = 1;
  22. const STATUS_SUCCESS = 2;
  23. const STATUS_FAIL = 3;
  24. public static $STATUS = [
  25. 0 => '待处理',
  26. 1 => '已发起',
  27. 2 => '已确认',
  28. 3 => '失败',
  29. ];
  30. }