xmwechat.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. return [
  3. //公众号
  4. 'offiAccount' => [
  5. 'app_id' => 'wx23d85548cc11d091',
  6. 'secret' => '523e9028ee040e56b4a0b0d297cb657a',
  7. 'redirect_url' => 'https://yxy.glut.cc/index.php/api/xmwechat.Offiaccount/oauth',
  8. 'offi_name' => 'yxy测试',
  9. 'original_id' => '',
  10. 'offi_qr_code' => '',
  11. 'server_url' => request()->domain() . '/index.php/api/xmwechat.Offiaccount/messageServe',
  12. 'server_token' => '20201012',
  13. 'encoding_aes_key' => '',
  14. 'message_encryption_method' => 'plaintext',
  15. 'business_domain' => request()->domain(),
  16. 'js_security_domain' => request()->domain(),
  17. 'website_auth_domain' => request()->domain(),
  18. ],
  19. //小程序
  20. 'miniProgram' => [
  21. 'app_id' => 'wx58633590ab59b7a1',
  22. 'secret' => '1d180037344bf5057eb75a0d94032253',
  23. 'name' => '仪享云',
  24. 'original_id' => '',
  25. 'qr_code' => '/storage/default/20240208/gh_2f3b735b9ce3988b16224dce7deb13acf204cf2f6ac15f052f4e.jpg',
  26. 'request_domain' => request()->domain(),
  27. 'socket_domain' => 'wss://' . str_replace(['http://', 'https://'], '', request()->domain()),
  28. 'upload_file_domain' => request()->domain(),
  29. 'download_file_domain' => request()->domain(),
  30. 'udp_domain' => 'udp://' . str_replace(['http://', 'https://'], '', request()->domain()),
  31. 'tcp_domain' => 'tcp://' . str_replace(['http://', 'https://'], '', request()->domain()),
  32. 'server_url' => request()->domain() . '/index.php/api/xmwechat.Miniprogram/messageServe',
  33. 'server_token' => 'TOKEN',
  34. 'encoding_aes_key' => '',
  35. 'message_encryption_method' => 'plaintext',
  36. ],
  37. //微信支付(v3)
  38. 'payment' => [
  39. 'mch_id' => '',
  40. 'secret_key' => 'secretkey',
  41. 'notify_url' => 'http://localhost:8000/index.php/api/xmwechat.Payment/notify',
  42. 'certificate' => 'app/cert/apiclient_cert.pem',
  43. 'private_key' => 'app/cert/apiclient_key.pem',
  44. ],
  45. // 合作伙伴(服务商)模式支付(v3)
  46. 'partnerPayment' => [
  47. 'sp_mchid' => '',
  48. 'sp_appid' => '',
  49. 'sub_mchid' => '',
  50. 'secret_key' => 'partnersecretkey',
  51. 'notify_url' => 'http://localhost:8000/index.php/api/xmwechat.PartnerPayment/payNotify',
  52. 'refunds_notify_url' => 'http://localhost:8000/index.php/api/xmwechat.PartnerPayment/refundsNotify',
  53. 'certificate' => 'app/cert/partner/apiclient_cert.pem',
  54. 'private_key' => 'app/cert/partner/apiclient_cert.pem',
  55. ],
  56. ];