ShareDefaults.php 1.0 KB

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' => '自有体育', 'self:lottery' => '自有彩票'];
  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. }