Browse Source

feat():授权

geek 4 years ago
parent
commit
4a97789ef5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/common/service/SettingService.php

+ 2 - 1
application/common/service/SettingService.php

@@ -33,11 +33,12 @@ class SettingService {
 
     public function setAuthUrl(int $channelId, string $redirectUrl) {
         $client = new Client();
-        $res =$client->request('Post', self::BASE_URL.'v1/activities/'.$channelId.'/setAuthUrl', [
+        $res =$client->request('Post', self::BASE_URL.'v1/activities/'.$channelId.'/setAuth', [
             'headers' => [
                 'Authorization' => self::TOKEN
             ],
             'json' => [
+                'method' => 'CUSTOM_VERIFY',
                 'redirect_url' => $redirectUrl
             ]
         ]);