修改接口
This commit is contained in:
@@ -197,8 +197,7 @@
|
||||
/// 获取个播PK规则
|
||||
/// @param completion 完成
|
||||
+ (void)requestAnchorPkRule:(HttpRequestHelperCompletion)completion {
|
||||
NSString * fang = [NSString stringFromBase64String:@""];///
|
||||
[self makeRequest:fang method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, nil];
|
||||
[self makeRequest:@"crossroompkround/getSingleRoomPkRule" method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, nil];
|
||||
}
|
||||
|
||||
#pragma mark - 超管
|
||||
|
@@ -12,6 +12,14 @@
|
||||
|
||||
#define AppName ([[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"])
|
||||
|
||||
#define isEnterprise \
|
||||
({BOOL isEnterprise = NO;\
|
||||
if (@available(iOS 11.0, *)) {\
|
||||
NSString *bundleID = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];\
|
||||
isEnterprise = [bundleID isEqualToString:@"com.hflighting.yumi"];\
|
||||
}\
|
||||
(isEnterprise);})
|
||||
|
||||
#ifdef DEBUG
|
||||
#define NSLog(fmt,...) NSLog((@"%s [Line %d]" fmt),__PRETTY_FUNCTION__,__LINE__,##__VA_ARGS__)
|
||||
#else
|
||||
|
@@ -118,7 +118,11 @@ static NSString *_from = nil;
|
||||
&& ![from isEqualToString:@""]) {
|
||||
_from = from;
|
||||
} else {
|
||||
_from = @"appstore"; // App Store包
|
||||
if (isEnterprise == NO) {
|
||||
_from = @"piko_Enterprise"; // 企业包
|
||||
}else {
|
||||
_from = @"appstore"; // App Store包
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user