Skip to content

Commit b230c0e

Browse files
authored
修改管理凭证
修改管理凭证
1 parent 2689f34 commit b230c0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiniu/services/pili/rtc_server_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
from qiniu import http, Auth
2+
from qiniu import http, QiniuMacAuth
33
import json
44

55

@@ -54,7 +54,7 @@ def __delete(self, url, params=None):
5454

5555

5656
def get_room_token(access_key, secret_key, room_access):
57-
auth = Auth(access_key, secret_key)
57+
auth = QiniuMacAuth(access_key, secret_key)
5858
room_access_str = json.dumps(room_access)
5959
room_token = auth.token_with_data(room_access_str)
6060
return room_token

0 commit comments

Comments
 (0)