app.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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. // ZIMU/808支付配置
  35. 'zimu_pay_app_id' => env('ZIMU_PAY_APP_ID', ''),
  36. 'zimu_pay_key' => env('ZIMU_PAY_KEY', ''),
  37. 'zimu_pay_gateway' => env('ZIMU_PAY_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/order/placeOrder'),
  38. 'zimu_pay_query_gateway' => env('ZIMU_PAY_QUERY_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/order/placeOrderInfo'),
  39. 'zimu_balance_gateway' => env('ZIMU_BALANCE_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/account/balance'),
  40. 'zimu_withdraw_gateway' => env('ZIMU_WITHDRAW_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/order/withdrawOrder'),
  41. 'zimu_withdraw_query_gateway' => env('ZIMU_WITHDRAW_QUERY_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/order/withdrawOrderInfo'),
  42. 'zimu_cash_gateway' => env('ZIMU_CASH_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/cash/placeCash'),
  43. 'zimu_cash_query_gateway' => env('ZIMU_CASH_QUERY_GATEWAY', 'https://api.zimu808.com/api/v1/mch/openapi/cash/cashInfo'),
  44. 'zimu_pay_recharge_user_ids' => env('ZIMU_PAY_RECHARGE_USER_IDS', ''),
  45. /*
  46. |--------------------------------------------------------------------------
  47. | Application Name
  48. |--------------------------------------------------------------------------
  49. |
  50. | This value is the name of your application. This value is used when the
  51. | framework needs to place the application's name in a notification or
  52. | any other location as required by the application or its packages.
  53. |
  54. */
  55. 'name' => env('APP_NAME', 'Laravel'),
  56. /*
  57. |--------------------------------------------------------------------------
  58. | Application Environment
  59. |--------------------------------------------------------------------------
  60. |
  61. | This value determines the "environment" your application is currently
  62. | running in. This may determine how you prefer to configure various
  63. | services the application utilizes. Set this in your ".env" file.
  64. |
  65. */
  66. 'env' => env('APP_ENV', 'production'),
  67. /*
  68. |--------------------------------------------------------------------------
  69. | Application Debug Mode
  70. |--------------------------------------------------------------------------
  71. |
  72. | When your application is in debug mode, detailed error messages with
  73. | stack traces will be shown on every error that occurs within your
  74. | application. If disabled, a simple generic error page is shown.
  75. |
  76. */
  77. 'debug' => (bool)env('APP_DEBUG', false),
  78. /*
  79. |--------------------------------------------------------------------------
  80. | Application URL
  81. |--------------------------------------------------------------------------
  82. |
  83. | This URL is used by the console to properly generate URLs when using
  84. | the Artisan command line tool. You should set this to the root of
  85. | your application so that it is used when running Artisan tasks.
  86. |
  87. */
  88. // 'url' => (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http') . '://' . (isset($_SERVER['HTTP_HOST'])?$_SERVER['HTTP_HOST']:'localhost'),
  89. 'url' => env('APP_URL', ''),
  90. 'football_url' => env('FOOTBALL_APP_URL', ''),
  91. 'asset_url' => env('ASSET_URL'),
  92. 'jwt_secret' => env('JWT_SECRET', '881FrcXs'),
  93. 'jwt_exp' => env('JWT_EXP', 86400),
  94. 'unique_identification' => env('unique_identification', 'likeadmin'),
  95. /*
  96. |--------------------------------------------------------------------------
  97. | Application Timezone
  98. |--------------------------------------------------------------------------
  99. |
  100. | Here you may specify the default timezone for your application, which
  101. | will be used by the PHP date and date-time functions. We have gone
  102. | ahead and set this to a sensible default for you out of the box.
  103. |
  104. */
  105. //'timezone' => 'UTC',
  106. 'timezone' => 'Asia/Shanghai',
  107. /*
  108. |--------------------------------------------------------------------------
  109. | Application Locale Configuration
  110. |--------------------------------------------------------------------------
  111. |
  112. | The application locale determines the default locale that will be used
  113. | by the translation service provider. You are free to set this value
  114. | to any of the locales which will be supported by the application.
  115. |
  116. */
  117. // 'locale' => 'en',
  118. // 'locale' => 'zh',
  119. 'locale' => isset($_REQUEST['lang']) && $_REQUEST['lang'] == 'en' ? 'en' : 'zh',
  120. /*
  121. |--------------------------------------------------------------------------
  122. | Application Fallback Locale
  123. |--------------------------------------------------------------------------
  124. |
  125. | The fallback locale determines the locale to use when the current one
  126. | is not available. You may change the value to correspond to any of
  127. | the language folders that are provided through your application.
  128. |
  129. */
  130. 'fallback_locale' => 'en',
  131. /*
  132. |--------------------------------------------------------------------------
  133. | Faker Locale
  134. |--------------------------------------------------------------------------
  135. |
  136. | This locale will be used by the Faker PHP library when generating fake
  137. | data for your database seeds. For example, this will be used to get
  138. | localized telephone numbers, street address information and more.
  139. |
  140. */
  141. 'faker_locale' => 'en_US',
  142. /*
  143. |--------------------------------------------------------------------------
  144. | Encryption Key
  145. |--------------------------------------------------------------------------
  146. |
  147. | This key is used by the Illuminate encrypter service and should be set
  148. | to a random, 32 character string, otherwise these encrypted strings
  149. | will not be safe. Please do this before deploying an application!
  150. |
  151. */
  152. 'key' => env('APP_KEY'),
  153. 'cipher' => 'AES-256-CBC',
  154. /*
  155. |--------------------------------------------------------------------------
  156. | Maintenance Mode Driver
  157. |--------------------------------------------------------------------------
  158. |
  159. | These configuration options determine the driver used to determine and
  160. | manage Laravel's "maintenance mode" status. The "cache" driver will
  161. | allow maintenance mode to be controlled across multiple machines.
  162. |
  163. | Supported drivers: "file", "cache"
  164. |
  165. */
  166. 'maintenance' => [
  167. 'driver' => 'file',
  168. // 'store' => 'redis',
  169. ],
  170. /*
  171. |--------------------------------------------------------------------------
  172. | Autoloaded Service Providers
  173. |--------------------------------------------------------------------------
  174. |
  175. | The service providers listed here will be automatically loaded on the
  176. | request to your application. Feel free to add your own services to
  177. | this array to grant expanded functionality to your applications.
  178. |
  179. */
  180. 'providers' => [
  181. /*
  182. * Laravel Framework Service Providers...
  183. */
  184. Illuminate\Auth\AuthServiceProvider::class,
  185. Illuminate\Broadcasting\BroadcastServiceProvider::class,
  186. Illuminate\Bus\BusServiceProvider::class,
  187. Illuminate\Cache\CacheServiceProvider::class,
  188. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  189. Illuminate\Cookie\CookieServiceProvider::class,
  190. Illuminate\Database\DatabaseServiceProvider::class,
  191. Illuminate\Encryption\EncryptionServiceProvider::class,
  192. Illuminate\Filesystem\FilesystemServiceProvider::class,
  193. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  194. Illuminate\Hashing\HashServiceProvider::class,
  195. Illuminate\Mail\MailServiceProvider::class,
  196. Illuminate\Notifications\NotificationServiceProvider::class,
  197. Illuminate\Pagination\PaginationServiceProvider::class,
  198. Illuminate\Pipeline\PipelineServiceProvider::class,
  199. Illuminate\Queue\QueueServiceProvider::class,
  200. Illuminate\Redis\RedisServiceProvider::class,
  201. Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  202. Illuminate\Session\SessionServiceProvider::class,
  203. Illuminate\Translation\TranslationServiceProvider::class,
  204. Illuminate\Validation\ValidationServiceProvider::class,
  205. Illuminate\View\ViewServiceProvider::class,
  206. /*
  207. * Package Service Providers...
  208. */
  209. /*
  210. * Application Service Providers...
  211. */
  212. App\Providers\AppServiceProvider::class,
  213. App\Providers\AuthServiceProvider::class,
  214. // App\Providers\BroadcastServiceProvider::class,
  215. App\Providers\EventServiceProvider::class,
  216. App\Providers\RouteServiceProvider::class,
  217. ],
  218. /*
  219. |--------------------------------------------------------------------------
  220. | Class Aliases
  221. |--------------------------------------------------------------------------
  222. |
  223. | This array of class aliases will be registered when this application
  224. | is started. However, feel free to register as many as you wish as
  225. | the aliases are "lazy" loaded so they don't hinder performance.
  226. |
  227. */
  228. 'aliases' => Facade::defaultAliases()->merge([
  229. // 'ExampleClass' => App\Example\ExampleClass::class,
  230. ])->toArray(),
  231. ];