ShareDefaults.php 991 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App\Services\Sharing;
  3. final class ShareDefaults
  4. {
  5. public const TIMEZONE = 'Asia/Shanghai';
  6. public static function categories(): array
  7. {
  8. return ['third:1' => '真人', 'third:2' => '电子', 'third:3' => '彩票',
  9. 'third:4' => '体育', 'third:5' => '电竞', 'third:6' => '捕鱼',
  10. 'third:7' => '棋牌', 'self:sport' => 'F1体育', 'self:lottery' => 'F1彩票'];
  11. }
  12. public static function rules(): array
  13. {
  14. $rows = [];
  15. foreach ([[0,100,'0.10'],[1,20000,'0.20'],[1,50000,'0.25'],[2,100000,'0.30'],
  16. [2,200000,'0.35'],[3,300000,'0.40'],[3,500000,'0.45'],[3,600000,'0.50'],
  17. [5,900000,'0.55'],[5,1100000,'0.60'],[5,1500000,'0.65'],[5,1700000,'0.70']] as [$people,$amount,$rate]) {
  18. $rows[] = ['min_valid_members' => $people, 'min_performance' => (string)$amount, 'rate' => $rate];
  19. }
  20. return array_fill_keys(array_keys(self::categories()), $rows);
  21. }
  22. }