molistar商店包版本修改 此commit置顶 1.0.3
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 76 KiB |
@@ -23,6 +23,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
///开箱子 大于等级 展示
|
///开箱子 大于等级 展示
|
||||||
@property (nonatomic, assign) NSInteger openCandyTreeLimitLevel;
|
@property (nonatomic, assign) NSInteger openCandyTreeLimitLevel;
|
||||||
@property (nonatomic,assign) BOOL canOpen;
|
@property (nonatomic,assign) BOOL canOpen;
|
||||||
|
@property(nonatomic,assign) BOOL isTF;
|
||||||
///是否刷新了
|
///是否刷新了
|
||||||
@property (nonatomic,assign) BOOL isLoad;
|
@property (nonatomic,assign) BOOL isLoad;
|
||||||
///房间id,用于分享房间跳转到房间
|
///房间id,用于分享房间跳转到房间
|
||||||
|
@@ -35,7 +35,12 @@
|
|||||||
});
|
});
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
-(BOOL)isTestFlight{
|
||||||
|
NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
|
||||||
|
NSString *receiptURLString = [receiptURL path];
|
||||||
|
BOOL isTestFlight = ([receiptURLString containsString:@"sandboxReceipt"] || [receiptURLString containsString:@"_MASReceipt/receipt"]);
|
||||||
|
return isTestFlight;
|
||||||
|
}
|
||||||
- (void)clientInit {
|
- (void)clientInit {
|
||||||
|
|
||||||
self.canOpen = YES;
|
self.canOpen = YES;
|
||||||
@@ -110,6 +115,11 @@
|
|||||||
timer = nil;
|
timer = nil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
- (BOOL)isTF{
|
||||||
|
if(!_isTF){
|
||||||
|
_isTF = [self isTestFlight];
|
||||||
|
}
|
||||||
|
return _isTF;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@@ -52,7 +52,8 @@ isPhoneXSeries = [[UIApplication sharedApplication] delegate].window.safeAreaIns
|
|||||||
#define PI_App_Version @"1.0.3"
|
#define PI_App_Version @"1.0.3"
|
||||||
///渠道
|
///渠道
|
||||||
#define PI_App_Source @"appstore"
|
#define PI_App_Source @"appstore"
|
||||||
//#define PI_App_Source @"pi_tf"
|
#define PI_Test_Flight @"TestFlight"
|
||||||
|
|
||||||
///正式环境
|
///正式环境
|
||||||
#define API_HOST_URL @"https://api.hfighting.com"
|
#define API_HOST_URL @"https://api.hfighting.com"
|
||||||
//#define API_HOST_URL @"https://api.molistar.xyz"
|
//#define API_HOST_URL @"https://api.molistar.xyz"
|
||||||
|
@@ -54,7 +54,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>2</string>
|
<string>4</string>
|
||||||
<key>FacebookAppID</key>
|
<key>FacebookAppID</key>
|
||||||
<string>1266232494209868</string>
|
<string>1266232494209868</string>
|
||||||
<key>FacebookClientToken</key>
|
<key>FacebookClientToken</key>
|
||||||
|
@@ -38,6 +38,7 @@
|
|||||||
[self.titleView mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.titleView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.centerY.equalTo(self.contentView);
|
make.centerY.equalTo(self.contentView);
|
||||||
make.leading.equalTo(self.iconView.mas_trailing).mas_offset(10);
|
make.leading.equalTo(self.iconView.mas_trailing).mas_offset(10);
|
||||||
|
make.trailing.equalTo(self.selectBtn.mas_leading).mas_offset(-kGetScaleWidth(10));
|
||||||
}];
|
}];
|
||||||
[self.selectBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.selectBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.width.height.mas_equalTo(20);
|
make.width.height.mas_equalTo(20);
|
||||||
@@ -70,6 +71,7 @@
|
|||||||
_titleView = [UILabel new];
|
_titleView = [UILabel new];
|
||||||
_titleView.font = [UIFont systemFontOfSize:16 weight:UIFontWeightBold];
|
_titleView.font = [UIFont systemFontOfSize:16 weight:UIFontWeightBold];
|
||||||
_titleView.textColor = UIColorFromRGB(0x1F1B4F);
|
_titleView.textColor = UIColorFromRGB(0x1F1B4F);
|
||||||
|
_titleView.adjustsFontSizeToFitWidth = YES;
|
||||||
}
|
}
|
||||||
return _titleView;
|
return _titleView;
|
||||||
}
|
}
|
||||||
|
@@ -103,7 +103,7 @@
|
|||||||
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
|
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
|
||||||
XPNobleCenterPayCell *cell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([XPNobleCenterPayCell class]) forIndexPath:indexPath];
|
XPNobleCenterPayCell *cell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([XPNobleCenterPayCell class]) forIndexPath:indexPath];
|
||||||
cell.isChoose = indexPath.row == self.path.row;
|
cell.isChoose = indexPath.row == self.path.row;
|
||||||
cell.iconImage = indexPath.row == 0 ? kImage( @"exchange_gold_icon") : kImage(@"mine_noble_center_apple");
|
cell.iconImage = indexPath.row == 0 ? kImage( @"exchange_gold_icon") : kImage(@"noble_open_btn");
|
||||||
NSString *num = [NSString stringWithFormat:@"(%@%@)",self.diamonds,YMLocalizedString(@"XPNobleCenterPayView1")];
|
NSString *num = [NSString stringWithFormat:@"(%@%@)",self.diamonds,YMLocalizedString(@"XPNobleCenterPayView1")];
|
||||||
NSString *text = indexPath.row == 0 ? [NSString stringWithFormat:@"%@%@",self.listData[indexPath.row],num] : self.listData[indexPath.row];
|
NSString *text = indexPath.row == 0 ? [NSString stringWithFormat:@"%@%@",self.listData[indexPath.row],num] : self.listData[indexPath.row];
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@
|
|||||||
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
|
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
|
||||||
self.path = indexPath;
|
self.path = indexPath;
|
||||||
self.type = indexPath.row == 0 ? NobleCenterPayType_diamond : NobleCenterPayType_Apple;
|
self.type = indexPath.row == 0 ? NobleCenterPayType_diamond : NobleCenterPayType_Apple;
|
||||||
self.diamondNumView.text = indexPath.row == 0 ? [NSString stringWithFormat:@"%.0f",_money.floatValue * 1000] : [NSString stringWithFormat:@"%.2f",_money.floatValue];
|
self.diamondNumView.text = indexPath.row == 0 ? [NSString stringWithFormat:@"%.0f",_money.floatValue * 1000] : [NSString stringWithFormat:@"$%.2f",_money.floatValue];
|
||||||
self.diamondNumTitle.text = indexPath.row == 0 ? YMLocalizedString(@"XPNobleCenterPayView1"):@"";
|
self.diamondNumTitle.text = indexPath.row == 0 ? YMLocalizedString(@"XPNobleCenterPayView1"):@"";
|
||||||
[self.tableView reloadData];
|
[self.tableView reloadData];
|
||||||
}
|
}
|
||||||
@@ -201,10 +201,10 @@
|
|||||||
- (NSArray *)listData{
|
- (NSArray *)listData{
|
||||||
if(!_listData){
|
if(!_listData){
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
_listData = @[YMLocalizedString(@"XPNobleCenterPayView2"),@"Apple Pay"];
|
_listData = @[YMLocalizedString(@"XPNobleCenterPayView2"),YMLocalizedString(@"XPNobleCenterWindow0")];
|
||||||
#else
|
#else
|
||||||
if(isEnterprise == YES){
|
if(isEnterprise == YES){
|
||||||
_listData = @[YMLocalizedString(@"XPNobleCenterPayView2"),@"Apple Pay"];
|
_listData = @[YMLocalizedString(@"XPNobleCenterPayView2"),YMLocalizedString(@"XPNobleCenterWindow0")];
|
||||||
}else{
|
}else{
|
||||||
_listData = @[YMLocalizedString(@"XPNobleCenterPayView2")];
|
_listData = @[YMLocalizedString(@"XPNobleCenterPayView2")];
|
||||||
}
|
}
|
||||||
|
@@ -9,6 +9,7 @@
|
|||||||
#import "YYUtility.h"
|
#import "YYUtility.h"
|
||||||
#import <CoreTelephony/CTTelephonyNetworkInfo.h> //为判断网络制式的主要文件
|
#import <CoreTelephony/CTTelephonyNetworkInfo.h> //为判断网络制式的主要文件
|
||||||
#import <CoreTelephony/CTCarrier.h> //添加获取客户端运营商 支持
|
#import <CoreTelephony/CTCarrier.h> //添加获取客户端运营商 支持
|
||||||
|
#import "ClientConfig.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -33,8 +34,18 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
+ (NSString *)appName {
|
+ (NSString *)appName {
|
||||||
|
#ifdef DEBUG
|
||||||
|
NSString *isProduction = [[NSUserDefaults standardUserDefaults]valueForKey:@"kIsProductionEnvironment"];
|
||||||
|
if([isProduction isEqualToString:@"YES"]){
|
||||||
|
return @"youmi";
|
||||||
|
}
|
||||||
|
return @"molistar";
|
||||||
|
|
||||||
|
#else
|
||||||
|
return @"youmi";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
return @"molistar";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -110,27 +121,11 @@ static NSString *_from = nil;
|
|||||||
|
|
||||||
+ (NSString *)getAppSource{
|
+ (NSString *)getAppSource{
|
||||||
if (_from == nil) {
|
if (_from == nil) {
|
||||||
NSString *path = [[NSBundle mainBundle] pathForResource:@"sourceid.dat" ofType:nil];
|
|
||||||
|
|
||||||
NSError *error;
|
|
||||||
NSString *from = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:&error];
|
|
||||||
|
|
||||||
// 去除换行及空格
|
|
||||||
if (from) {
|
|
||||||
from = [self removeSpaceAndNewline:from];
|
|
||||||
}
|
|
||||||
// 如果读到有值且不为0
|
|
||||||
if (!error
|
|
||||||
&& ![from isEqualToString:@"0"]
|
|
||||||
&& ![from isEqualToString:@""]) {
|
|
||||||
_from = from;
|
|
||||||
} else {
|
|
||||||
if (isEnterprise == NO) {
|
if (isEnterprise == NO) {
|
||||||
_from = @"molistar_enterprise"; // 企业包
|
_from = @"molistar_enterprise"; // 企业包
|
||||||
}else {
|
}else {
|
||||||
_from = PI_App_Source; //appstore App Store包
|
_from = [ClientConfig shareConfig].isTF == YES ? PI_Test_Flight : PI_App_Source; // Test_Flight包或appstore App Store包
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return _from;
|
return _from;
|
||||||
|
Reference in New Issue
Block a user