BaseConst.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. namespace App\Consts;
  3. class BaseConst
  4. {
  5. /**
  6. * 一天86400秒
  7. */
  8. const ONE_DAY_SECONDS = 86400;
  9. /**
  10. * 一周 86400 * 7 秒
  11. */
  12. const ONE_WEEK_SECONDS = 604800;
  13. /**
  14. * 一个月 86400 * 31 秒
  15. */
  16. const ONE_MONTH_SECONDS = 2678400;
  17. /**
  18. * 一天24*60分钟
  19. */
  20. const ONE_DAY_MINITUES = 1440;
  21. /**
  22. * 一分钟60秒
  23. */
  24. const ONE_MINUTE_SECONDS = 60;
  25. /**
  26. * 一小时3600秒
  27. */
  28. const ONE_HOUR = 3600;
  29. /**
  30. * 一年365天
  31. */
  32. const ONE_YEAR_DAYS = 365;
  33. /**
  34. * 默认锁时长
  35. */
  36. const LOCK_DEFAULT_SECONDS = 5;
  37. /**
  38. * 显示7天以前数据
  39. */
  40. const DATE_RANGE_DAYS = 7;
  41. /**
  42. * 默认分页数量
  43. */
  44. const DEFAULT_LENGTH = 15;
  45. /**
  46. * 每日分享量(达到该数值可获得一天会员)
  47. */
  48. const DAILY_SHARE_NUM = 5;
  49. /**
  50. * 初级vip等级
  51. */
  52. const JUNIOR_VIP_LEVEL = 1;
  53. /**
  54. * 高级vip登记等级
  55. */
  56. const SENIOR_VIP_LEVEL = 2;
  57. const USER_SCOPE = [
  58. '1' => '补充模板未覆盖人群',
  59. '2' => '付费用户',
  60. '3' => '派单用户'
  61. ];
  62. const PRODUCT_TYPE = [
  63. 'WEEK' => '周卡',
  64. 'MONTH' => '月卡',
  65. 'QUARTER' => '季卡',
  66. 'YEAR' => '年卡'
  67. ];
  68. const VOLC_PIC_MODELS = ['doubao-seedream-5-0-260128', 'doubao-seedream-5-0-lite-260128', 'doubao-seedream-4-5-251128'];
  69. const GPT_IMAGE2_MODELS = ['gpt-image-2'];
  70. // 火山写作奖励计划接入点(使用该接入点可在第二天根据前一天使用量获取免费额度)
  71. const MODELS_MAP = [
  72. 'doubao-seed-2-0-pro-260215' => 'ep-20260422093628-pv5vj',
  73. 'doubao-seed-2-0-lite-260215' => 'ep-20260422093559-9fsgl',
  74. 'doubao-seed-2-0-mini-260215' => 'ep-20260422093505-qkj4z',
  75. 'deepseek-v3-2-251201' => 'ep-20260422092942-7kh9p',
  76. 'doubao-seedream-4-5-251128' => 'ep-20260422092419-6lvp9',
  77. 'doubao-seedance-1-5-pro-251215' => 'ep-20260422091940-g4knb'
  78. ];
  79. /**
  80. * 画面比例配置
  81. */
  82. const IMAGE_RATIOS = [
  83. '1:1' => ['width' => 2048, 'height' => 2048],
  84. '4:3' => ['width' => 2304, 'height' => 1728],
  85. '3:4' => ['width' => 1728, 'height' => 2304],
  86. '16:9' => ['width' => 2848, 'height' => 1600],
  87. '9:16' => ['width' => 1600, 'height' => 2848],
  88. '3:2' => ['width' => 2496, 'height' => 1664],
  89. '2:3' => ['width' => 1664, 'height' => 2496],
  90. '21:9' => ['width' => 3136, 'height' => 1344],
  91. ];
  92. }