geek 4 rokov pred
rodič
commit
4a97789ef5

+ 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
             ]
         ]);