Commit 16dc30b637b79f896cc06e85105651525bb79578

Authored by 王军波
1 parent 91982ce4

添加验证主播地址

LiveVideoCloud/UtilKits/ServerUrl/ZXServerUrl.h
@@ -29,4 +29,7 @@ @@ -29,4 +29,7 @@
29 29
30 /** 直播列表 */ 30 /** 直播列表 */
31 + (NSString *)getLiveListURL; 31 + (NSString *)getLiveListURL;
  32 +
  33 +/** 验证主播是否有直播权限 */
  34 ++ (NSString *)verifyLiveAuthURL;
32 @end 35 @end
LiveVideoCloud/UtilKits/ServerUrl/ZXServerUrl.m
@@ -26,6 +26,8 @@ static NSString *g_SearchContentURL = @"/from/huntKeyWordApi/huntKeyWords.do";// @@ -26,6 +26,8 @@ static NSString *g_SearchContentURL = @"/from/huntKeyWordApi/huntKeyWords.do";//
26 /** 直播列表 */ 26 /** 直播列表 */
27 static NSString *g_LiveListURL = @"/open/api2/live_epg/sp/activityList4App"; 27 static NSString *g_LiveListURL = @"/open/api2/live_epg/sp/activityList4App";
28 28
  29 +/** 验证主播是否有直播权限 */
  30 +static NSString *g_VerifyLiveAuthURL = @"/open/api2/live_epg/channel/info4App";
29 31
30 @implementation ZXServerUrl 32 @implementation ZXServerUrl
31 33
@@ -61,4 +63,10 @@ static NSString *g_LiveListURL = @"/open/api2/live_epg/sp/activityList4App"; @@ -61,4 +63,10 @@ static NSString *g_LiveListURL = @"/open/api2/live_epg/sp/activityList4App";
61 return [NSString stringWithFormat:@"%@%@", serverBaseURL, g_LiveListURL]; 63 return [NSString stringWithFormat:@"%@%@", serverBaseURL, g_LiveListURL];
62 } 64 }
63 65
  66 +/** 验证主播是否有直播权限 */
  67 ++ (NSString *)verifyLiveAuthURL
  68 +{
  69 + return [NSString stringWithFormat:@"%@%@", serverBaseURL, g_VerifyLiveAuthURL];
  70 +}
  71 +
64 @end 72 @end