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