From b230c0ee742c5bc1efd54dc64b7067ce40f104ab Mon Sep 17 00:00:00 2001 From: songfei9315 Date: Fri, 4 Jun 2021 11:32:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AE=A1=E7=90=86=E5=87=AD?= =?UTF-8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改管理凭证 --- qiniu/services/pili/rtc_server_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qiniu/services/pili/rtc_server_manager.py b/qiniu/services/pili/rtc_server_manager.py index ba12bcb1..7dfce664 100644 --- a/qiniu/services/pili/rtc_server_manager.py +++ b/qiniu/services/pili/rtc_server_manager.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from qiniu import http, Auth +from qiniu import http, QiniuMacAuth import json @@ -54,7 +54,7 @@ def __delete(self, url, params=None): def get_room_token(access_key, secret_key, room_access): - auth = Auth(access_key, secret_key) + auth = QiniuMacAuth(access_key, secret_key) room_access_str = json.dumps(room_access) room_token = auth.token_with_data(room_access_str) return room_token