ソースを参照

feat():授权

geek 4 年 前
コミット
4a97789ef5
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  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) {
     public function setAuthUrl(int $channelId, string $redirectUrl) {
         $client = new Client();
         $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' => [
             'headers' => [
                 'Authorization' => self::TOKEN
                 'Authorization' => self::TOKEN
             ],
             ],
             'json' => [
             'json' => [
+                'method' => 'CUSTOM_VERIFY',
                 'redirect_url' => $redirectUrl
                 'redirect_url' => $redirectUrl
             ]
             ]
         ]);
         ]);