app.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?php
  2. use Illuminate\Support\Facades\Facade;
  3. return [
  4. 'usdt_address' => env('USDT_ADDRESS',''),
  5. 'trx_private_key' => env('TRX_PRIVATE_KEY',''),
  6. 'tron_network' => env('TRON_NETWORK','main'),
  7. 'tron_pro_api_key' => env('TRON_PRO_API_KEY',''),
  8. 'tron_usdt_transfer_fee_limit' => env('TRON_USDT_TRANSFER_FEE_LIMIT', '30'),
  9. 'collect_required_trx_balance' => env('COLLECT_REQUIRED_TRX_BALANCE', '15'),
  10. // 第三方支付配置
  11. 'tree_payment_merchant_id' => env('TREE_PAYMENT_MERCHANT_ID',''),
  12. 'tree_payment_secret' => env('TREE_PAYMENT_SECRET',''),
  13. // 第三方收款配置
  14. 'tree_pay_mch_id' => env('TREE_PAY_MCH_ID',''),
  15. 'tree_pay_key' => env('TREE_PAY_MCH_KEY',''),
  16. // JD钱包支付配置
  17. 'jd_pay_mch_id' => env('JD_PAY_MCH_ID', ''),
  18. 'jd_pay_key' => env('JD_PAY_KEY', ''),
  19. 'jd_pay_gateway' => env('JD_PAY_GATEWAY', 'https://openapi.jdpayapi.com/jdpayOpen/api/pay'),
  20. 'jd_pay_query_gateway' => env('JD_PAY_QUERY_GATEWAY', 'https://openapi.jdpayapi.com/jdpayOpen/api/query/pay-order'),
  21. 'jd_remit_gateway' => env('JD_REMIT_GATEWAY', 'https://openapi.jdpayapi.com/jdpayOpen/api/remit'),
  22. 'jd_remit_query_gateway' => env('JD_REMIT_QUERY_GATEWAY', 'https://openapi.jdpayapi.com/jdpayOpen/api/query/remit-order'),
  23. 'jd_balance_gateway' => env('JD_BALANCE_GATEWAY', 'https://openapi.jdpayapi.com/jdpayOpen/api/balance'),
  24. 'jd_pay_recharge_user_ids' => env('JD_PAY_RECHARGE_USER_IDS', ''),
  25. // NO钱包支付配置
  26. 'no_pay_deposit_mch_id' => env('NO_PAY_DEPOSIT_MCH_ID', ''),
  27. 'no_pay_deposit_key' => env('NO_PAY_DEPOSIT_KEY', ''),
  28. 'no_pay_withdraw_mch_id' => env('NO_PAY_WITHDRAW_MCH_ID', ''),
  29. 'no_pay_withdraw_key' => env('NO_PAY_WITHDRAW_KEY', ''),
  30. 'no_pay_deposit_gateway' => env('NO_PAY_DEPOSIT_GATEWAY', 'https://payz7x2.qb8.app/order/depositOrderCreate'),
  31. 'no_pay_deposit_query_gateway' => env('NO_PAY_DEPOSIT_QUERY_GATEWAY', 'https://payz7x2.qb8.app/order/depositOrderQuery'),
  32. 'no_pay_withdraw_gateway' => env('NO_PAY_WITHDRAW_GATEWAY', 'https://payz7x2.qb8.app/order/withdrawOrderCreate'),
  33. 'no_pay_recharge_user_ids' => env('NO_PAY_RECHARGE_USER_IDS', ''),
  34. /*
  35. |--------------------------------------------------------------------------
  36. | Application Name
  37. |--------------------------------------------------------------------------
  38. |
  39. | This value is the name of your application. This value is used when the
  40. | framework needs to place the application's name in a notification or
  41. | any other location as required by the application or its packages.
  42. |
  43. */
  44. 'name' => env('APP_NAME', 'Laravel'),
  45. /*
  46. |--------------------------------------------------------------------------
  47. | Application Environment
  48. |--------------------------------------------------------------------------
  49. |
  50. | This value determines the "environment" your application is currently
  51. | running in. This may determine how you prefer to configure various
  52. | services the application utilizes. Set this in your ".env" file.
  53. |
  54. */
  55. 'env' => env('APP_ENV', 'production'),
  56. /*
  57. |--------------------------------------------------------------------------
  58. | Application Debug Mode
  59. |--------------------------------------------------------------------------
  60. |
  61. | When your application is in debug mode, detailed error messages with
  62. | stack traces will be shown on every error that occurs within your
  63. | application. If disabled, a simple generic error page is shown.
  64. |
  65. */
  66. 'debug' => (bool)env('APP_DEBUG', false),
  67. /*
  68. |--------------------------------------------------------------------------
  69. | Application URL
  70. |--------------------------------------------------------------------------
  71. |
  72. | This URL is used by the console to properly generate URLs when using
  73. | the Artisan command line tool. You should set this to the root of
  74. | your application so that it is used when running Artisan tasks.
  75. |
  76. */
  77. // 'url' => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http') . '://' . (isset($_SERVER['HTTP_HOST'])?$_SERVER['HTTP_HOST']:'localhost'),
  78. 'url' => env('APP_URL', ''),
  79. 'asset_url' => env('ASSET_URL'),
  80. 'jwt_secret' => env('JWT_SECRET', '881FrcXs'),
  81. 'jwt_exp' => env('JWT_EXP', 86400),
  82. /*
  83. |--------------------------------------------------------------------------
  84. | Application Timezone
  85. |--------------------------------------------------------------------------
  86. |
  87. | Here you may specify the default timezone for your application, which
  88. | will be used by the PHP date and date-time functions. We have gone
  89. | ahead and set this to a sensible default for you out of the box.
  90. |
  91. */
  92. //'timezone' => 'UTC',
  93. 'timezone' => 'Asia/Shanghai',
  94. /*
  95. |--------------------------------------------------------------------------
  96. | Application Locale Configuration
  97. |--------------------------------------------------------------------------
  98. |
  99. | The application locale determines the default locale that will be used
  100. | by the translation service provider. You are free to set this value
  101. | to any of the locales which will be supported by the application.
  102. |
  103. */
  104. // 'locale' => 'en',
  105. // 'locale' => 'zh',
  106. 'locale' => isset($_REQUEST['lang']) && $_REQUEST['lang'] == 'en' ? 'en' : 'zh',
  107. /*
  108. |--------------------------------------------------------------------------
  109. | Application Fallback Locale
  110. |--------------------------------------------------------------------------
  111. |
  112. | The fallback locale determines the locale to use when the current one
  113. | is not available. You may change the value to correspond to any of
  114. | the language folders that are provided through your application.
  115. |
  116. */
  117. 'fallback_locale' => 'en',
  118. /*
  119. |--------------------------------------------------------------------------
  120. | Faker Locale
  121. |--------------------------------------------------------------------------
  122. |
  123. | This locale will be used by the Faker PHP library when generating fake
  124. | data for your database seeds. For example, this will be used to get
  125. | localized telephone numbers, street address information and more.
  126. |
  127. */
  128. 'faker_locale' => 'en_US',
  129. /*
  130. |--------------------------------------------------------------------------
  131. | Encryption Key
  132. |--------------------------------------------------------------------------
  133. |
  134. | This key is used by the Illuminate encrypter service and should be set
  135. | to a random, 32 character string, otherwise these encrypted strings
  136. | will not be safe. Please do this before deploying an application!
  137. |
  138. */
  139. 'key' => env('APP_KEY'),
  140. 'cipher' => 'AES-256-CBC',
  141. /*
  142. |--------------------------------------------------------------------------
  143. | Maintenance Mode Driver
  144. |--------------------------------------------------------------------------
  145. |
  146. | These configuration options determine the driver used to determine and
  147. | manage Laravel's "maintenance mode" status. The "cache" driver will
  148. | allow maintenance mode to be controlled across multiple machines.
  149. |
  150. | Supported drivers: "file", "cache"
  151. |
  152. */
  153. 'maintenance' => [
  154. 'driver' => 'file',
  155. // 'store' => 'redis',
  156. ],
  157. /*
  158. |--------------------------------------------------------------------------
  159. | Autoloaded Service Providers
  160. |--------------------------------------------------------------------------
  161. |
  162. | The service providers listed here will be automatically loaded on the
  163. | request to your application. Feel free to add your own services to
  164. | this array to grant expanded functionality to your applications.
  165. |
  166. */
  167. 'providers' => [
  168. /*
  169. * Laravel Framework Service Providers...
  170. */
  171. Illuminate\Auth\AuthServiceProvider::class,
  172. Illuminate\Broadcasting\BroadcastServiceProvider::class,
  173. Illuminate\Bus\BusServiceProvider::class,
  174. Illuminate\Cache\CacheServiceProvider::class,
  175. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  176. Illuminate\Cookie\CookieServiceProvider::class,
  177. Illuminate\Database\DatabaseServiceProvider::class,
  178. Illuminate\Encryption\EncryptionServiceProvider::class,
  179. Illuminate\Filesystem\FilesystemServiceProvider::class,
  180. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  181. Illuminate\Hashing\HashServiceProvider::class,
  182. Illuminate\Mail\MailServiceProvider::class,
  183. Illuminate\Notifications\NotificationServiceProvider::class,
  184. Illuminate\Pagination\PaginationServiceProvider::class,
  185. Illuminate\Pipeline\PipelineServiceProvider::class,
  186. Illuminate\Queue\QueueServiceProvider::class,
  187. Illuminate\Redis\RedisServiceProvider::class,
  188. Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  189. Illuminate\Session\SessionServiceProvider::class,
  190. Illuminate\Translation\TranslationServiceProvider::class,
  191. Illuminate\Validation\ValidationServiceProvider::class,
  192. Illuminate\View\ViewServiceProvider::class,
  193. /*
  194. * Package Service Providers...
  195. */
  196. /*
  197. * Application Service Providers...
  198. */
  199. App\Providers\AppServiceProvider::class,
  200. App\Providers\AuthServiceProvider::class,
  201. // App\Providers\BroadcastServiceProvider::class,
  202. App\Providers\EventServiceProvider::class,
  203. App\Providers\RouteServiceProvider::class,
  204. ],
  205. /*
  206. |--------------------------------------------------------------------------
  207. | Class Aliases
  208. |--------------------------------------------------------------------------
  209. |
  210. | This array of class aliases will be registered when this application
  211. | is started. However, feel free to register as many as you wish as
  212. | the aliases are "lazy" loaded so they don't hinder performance.
  213. |
  214. */
  215. 'aliases' => Facade::defaultAliases()->merge([
  216. // 'ExampleClass' => App\Example\ExampleClass::class,
  217. ])->toArray(),
  218. ];