|
@@ -84,14 +84,14 @@ namespace ET.Server
|
|
|
|
|
|
public static JObject GetRoomInfo(this GameDouyinComponent self, string token)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(self.AccessToken.Trim()))
|
|
|
+ if (string.IsNullOrEmpty(self.AccessToken))
|
|
|
{
|
|
|
Log.Error($"InitRoomId...AccessToken为null");
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
Dictionary<string, string> head = new Dictionary<string, string>();
|
|
|
- head.Add("X-Token", self.AccessToken.Trim());
|
|
|
+ head.Add("X-Token", self.AccessToken);
|
|
|
|
|
|
JObject param = new JObject();
|
|
|
param.Add("token", token);
|
|
@@ -134,7 +134,7 @@ namespace ET.Server
|
|
|
|
|
|
public static void TopGifts(this GameDouyinComponent self, long roomId)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(self.AccessToken.Trim()))
|
|
|
+ if (string.IsNullOrEmpty(self.AccessToken))
|
|
|
{
|
|
|
Log.Error($"TopGifts...AccessToken为null");
|
|
|
return;
|
|
@@ -147,7 +147,7 @@ namespace ET.Server
|
|
|
}
|
|
|
|
|
|
Dictionary<string, string> head = new Dictionary<string, string>();
|
|
|
- head.Add("x-token", self.AccessToken.Trim());
|
|
|
+ head.Add("x-token", self.AccessToken);
|
|
|
|
|
|
JObject param = new JObject();
|
|
|
param.Add("room_id", roomId.ToString());
|