app.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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. 'asset_url' => env('ASSET_URL'),
  91. 'jwt_secret' => env('JWT_SECRET', '881FrcXs'),
  92. 'jwt_exp' => env('JWT_EXP', 86400),
  93. /*
  94. |--------------------------------------------------------------------------
  95. | Application Timezone
  96. |--------------------------------------------------------------------------
  97. |
  98. | Here you may specify the default timezone for your application, which
  99. | will be used by the PHP date and date-time functions. We have gone
  100. | ahead and set this to a sensible default for you out of the box.
  101. |
  102. */
  103. //'timezone' => 'UTC',
  104. 'timezone' => 'Asia/Shanghai',
  105. /*
  106. |--------------------------------------------------------------------------
  107. | Application Locale Configuration
  108. |--------------------------------------------------------------------------
  109. |
  110. | The application locale determines the default locale that will be used
  111. | by the translation service provider. You are free to set this value
  112. | to any of the locales which will be supported by the application.
  113. |
  114. */
  115. // 'locale' => 'en',
  116. // 'locale' => 'zh',
  117. 'locale' => isset($_REQUEST['lang']) && $_REQUEST['lang'] == 'en' ? 'en' : 'zh',
  118. /*
  119. |--------------------------------------------------------------------------
  120. | Application Fallback Locale
  121. |--------------------------------------------------------------------------
  122. |
  123. | The fallback locale determines the locale to use when the current one
  124. | is not available. You may change the value to correspond to any of
  125. | the language folders that are provided through your application.
  126. |
  127. */
  128. 'fallback_locale' => 'en',
  129. /*
  130. |--------------------------------------------------------------------------
  131. | Faker Locale
  132. |--------------------------------------------------------------------------
  133. |
  134. | This locale will be used by the Faker PHP library when generating fake
  135. | data for your database seeds. For example, this will be used to get
  136. | localized telephone numbers, street address information and more.
  137. |
  138. */
  139. 'faker_locale' => 'en_US',
  140. /*
  141. |--------------------------------------------------------------------------
  142. | Encryption Key
  143. |--------------------------------------------------------------------------
  144. |
  145. | This key is used by the Illuminate encrypter service and should be set
  146. | to a random, 32 character string, otherwise these encrypted strings
  147. | will not be safe. Please do this before deploying an application!
  148. |
  149. */
  150. 'key' => env('APP_KEY'),
  151. 'cipher' => 'AES-256-CBC',
  152. /*
  153. |--------------------------------------------------------------------------
  154. | Maintenance Mode Driver
  155. |--------------------------------------------------------------------------
  156. |
  157. | These configuration options determine the driver used to determine and
  158. | manage Laravel's "maintenance mode" status. The "cache" driver will
  159. | allow maintenance mode to be controlled across multiple machines.
  160. |
  161. | Supported drivers: "file", "cache"
  162. |
  163. */
  164. 'maintenance' => [
  165. 'driver' => 'file',
  166. // 'store' => 'redis',
  167. ],
  168. /*
  169. |--------------------------------------------------------------------------
  170. | Autoloaded Service Providers
  171. |--------------------------------------------------------------------------
  172. |
  173. | The service providers listed here will be automatically loaded on the
  174. | request to your application. Feel free to add your own services to
  175. | this array to grant expanded functionality to your applications.
  176. |
  177. */
  178. 'providers' => [
  179. /*
  180. * Laravel Framework Service Providers...
  181. */
  182. Illuminate\Auth\AuthServiceProvider::class,
  183. Illuminate\Broadcasting\BroadcastServiceProvider::class,
  184. Illuminate\Bus\BusServiceProvider::class,
  185. Illuminate\Cache\CacheServiceProvider::class,
  186. Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
  187. Illuminate\Cookie\CookieServiceProvider::class,
  188. Illuminate\Database\DatabaseServiceProvider::class,
  189. Illuminate\Encryption\EncryptionServiceProvider::class,
  190. Illuminate\Filesystem\FilesystemServiceProvider::class,
  191. Illuminate\Foundation\Providers\FoundationServiceProvider::class,
  192. Illuminate\Hashing\HashServiceProvider::class,
  193. Illuminate\Mail\MailServiceProvider::class,
  194. Illuminate\Notifications\NotificationServiceProvider::class,
  195. Illuminate\Pagination\PaginationServiceProvider::class,
  196. Illuminate\Pipeline\PipelineServiceProvider::class,
  197. Illuminate\Queue\QueueServiceProvider::class,
  198. Illuminate\Redis\RedisServiceProvider::class,
  199. Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
  200. Illuminate\Session\SessionServiceProvider::class,
  201. Illuminate\Translation\TranslationServiceProvider::class,
  202. Illuminate\Validation\ValidationServiceProvider::class,
  203. Illuminate\View\ViewServiceProvider::class,
  204. /*
  205. * Package Service Providers...
  206. */
  207. /*
  208. * Application Service Providers...
  209. */
  210. App\Providers\AppServiceProvider::class,
  211. App\Providers\AuthServiceProvider::class,
  212. // App\Providers\BroadcastServiceProvider::class,
  213. App\Providers\EventServiceProvider::class,
  214. App\Providers\RouteServiceProvider::class,
  215. ],
  216. /*
  217. |--------------------------------------------------------------------------
  218. | Class Aliases
  219. |--------------------------------------------------------------------------
  220. |
  221. | This array of class aliases will be registered when this application
  222. | is started. However, feel free to register as many as you wish as
  223. | the aliases are "lazy" loaded so they don't hinder performance.
  224. |
  225. */
  226. 'aliases' => Facade::defaultAliases()->merge([
  227. // 'ExampleClass' => App\Example\ExampleClass::class,
  228. ])->toArray(),
  229. ];