CommonService.php 726 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Author: luzheng.liu
  4. * Time: 2020/12/5 00:49
  5. */
  6. namespace app\common\service;
  7. class CommonService {
  8. public static function getChannelId(): int {
  9. return 492717;
  10. }
  11. public static function getAuthKey(): string {
  12. return 'taT7WDgH20QP';
  13. }
  14. public static function getAuthUrl() {
  15. $baseUrl = self::getBaeUrl();
  16. $redirectUrl = ['redirect_uri' => self::getRedirectUrl()];
  17. return $baseUrl.'?'.http_build_query($redirectUrl);
  18. }
  19. public static function getBaeUrl() {
  20. return 'http://mdttest.kydev.net/api/wechat/focusarea/11/28';
  21. }
  22. public static function getRedirectUrl() {
  23. return 'http://tp.llzlovesh.top/api/user/logn';
  24. }
  25. }