修改夺爱和夺宝

This commit is contained in:
liyuhua
2023-10-10 14:45:53 +08:00
parent c78366a8ab
commit f55efbcbc0
134 changed files with 791 additions and 3262 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_bottom_buy@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_bottom_buy@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 KiB

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_buy_elf_but_btn@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_buy_elf_but_btn@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_buy_elf_choose@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_buy_elf_choose@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_buy_elf_icon@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_buy_elf_icon@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_buy_elf_no_choose@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_buy_elf_no_choose@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_buy_elf_price@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_buy_elf_price@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_buy_elf_title@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_buy_elf_title@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_draw_diamond_rebrush@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_draw_diamond_rebrush@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -5,12 +5,12 @@
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_bottom_icon@2x.png",
"filename" : "room_treasure_fairy_my_middle_title_normal@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_bottom_icon@3x.png",
"filename" : "room_treasure_fairy_my_middle_title_normal@3x.png",
"idiom" : "universal",
"scale" : "3x"
}

View File

@@ -5,12 +5,12 @@
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_buy_elf_bg@2x.png",
"filename" : "room_treasure_fairy_my_middle_title_select@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_buy_elf_bg@3x.png",
"filename" : "room_treasure_fairy_my_middle_title_select@3x.png",
"idiom" : "universal",
"scale" : "3x"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_new_buy_elf_add@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_new_buy_elf_add@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_new_buy_elf_bg@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_new_buy_elf_bg@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_new_buy_elf_subtract@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_new_buy_elf_subtract@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_new_buy_elf_title@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_new_buy_elf_title@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_shop_new_exchange_bg@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_shop_new_exchange_bg@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -5,12 +5,12 @@
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_bottom_bg@2x.png",
"filename" : "room_treasure_fairy_treasure_bg@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_bottom_bg@3x.png",
"filename" : "room_treasure_fairy_treasure_bg@3x.png",
"idiom" : "universal",
"scale" : "3x"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_trials_high_ball_bg@3x.png",
"filename" : "room_treasure_fairy_trials_high_ball_bg.png",
"idiom" : "universal",
"scale" : "2x"
},

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -5,7 +5,7 @@
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_trials_middle_ball_bg@3x.png",
"filename" : "room_treasure_fairy_trials_middle_ball_bg.png",
"idiom" : "universal",
"scale" : "2x"
},

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "room_treasure_fairy_trials_salvage_bg@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "room_treasure_fairy_trials_salvage_bg@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -112,9 +112,9 @@
- (void)textFieldDidChange:(UITextField *)textField {
if(textField.text.integerValue <= 0){
textField.text = @"";
}else if(textField.text.integerValue > 200){
}else if(textField.text.integerValue > 99999){
[XNDJTDDLoadingTool showErrorWithMessage:YMLocalizedString(@"XPCandyTreeViewController5")];
textField.text = @"200";
textField.text = @"99999";
}
self.chooseNum = textField.text;
@@ -127,9 +127,9 @@
- (void)textFieldDidEndEditing:(UITextField *)textField{
if(textField.text.length <= 0){
textField.text = @"";
}else if(textField.text.integerValue > 200){
}else if(textField.text.integerValue > 99999){
[XNDJTDDLoadingTool showErrorWithMessage:YMLocalizedString(@"XPCandyTreeViewController5")];
textField.text = @"200";
textField.text = @"99999";
}
self.chooseNum = textField.text;
NSArray *btnArr = @[self.oneTapBtn,self.tenTapBtn,self.hundredTapBtn];

View File

@@ -70,9 +70,9 @@
- (void)textFieldDidChanged:(UITextField *)textField {
if(textField.text.integerValue <= 0){
textField.text = @"";
}else if(textField.text.integerValue > 200){
}else if(textField.text.integerValue > 99999){
[XNDJTDDLoadingTool showErrorWithMessage:YMLocalizedString(@"XPCandyTreeViewController5")];
textField.text = @"200";
textField.text = @"99999";
}
@@ -83,9 +83,9 @@
- (void)textFieldDidEndEditing:(UITextField *)textField{
if(textField.text.length <= 0){
textField.text = @"";
}else if(textField.text.integerValue > 200){
}else if(textField.text.integerValue > 99999){
[XNDJTDDLoadingTool showErrorWithMessage:YMLocalizedString(@"XPCandyTreeViewController5")];
textField.text = @"200";
textField.text = @"99999";
}
if(self.delegate && [self.delegate respondsToSelector:@selector(inputLoveNum:)]){
@@ -114,8 +114,8 @@
-(void)addBtnAction{
NSInteger num = self.textFiled.text.integerValue + 10;
if(num > 200){
num = 200;
if(num > 99999){
num = 99999;
[XNDJTDDLoadingTool showErrorWithMessage:YMLocalizedString(@"XPCandyTreeViewController5")];
}
self.textFiled.text = @(num).stringValue;

View File

@@ -102,7 +102,7 @@ NS_ASSUME_NONNULL_BEGIN
/// 兑换-精灵
/// - Parameter completion: 完成
/// - Parameter itemId: id
+ (void)treasureFailyConvert:(HttpRequestHelperCompletion)completion itemId:(NSString *)itemId roomUid:(NSString *)roomUid propIdStr:(NSString *)propIdStr propNumStr:(NSString *)propNumStr;
+ (void)treasureFailyConvert:(HttpRequestHelperCompletion)completion itemId:(NSString *)itemId roomUid:(NSString *)roomUid;
/// 兑换-碎片兑换列表
/// - Parameter completion: 完成
@@ -117,16 +117,7 @@ NS_ASSUME_NONNULL_BEGIN
/// - page: 页数
/// - pageSize: 一页多少个
+ (void)treasureFairyConvertRecord:(HttpRequestHelperCompletion)completion convertType:(NSString *)convertType page:(NSString *)page pageSize:(NSString *)pageSize;
/// 购买精灵碎片
/// - Parameters:
/// - completion: 完成
/// - num: 数量
/// - uid: 用户id
+(void)buyElfShard:(HttpRequestHelperCompletion)completion num:(NSString *)num uid:(NSString *)uid;
/// 精灵分解
/// - Parameter completion: 完成
/// - Parameter salvageReq: 分解的精灵
+ (void)treasureFailySalvageall:(HttpRequestHelperCompletion)completion salvageReq:(NSArray *)salvageReq;
@end
NS_ASSUME_NONNULL_END

View File

@@ -119,14 +119,7 @@
[dic safeSetObject:compoundReqs forKey:@"expendList"];
[HttpRequestHelper postSkillCard:@"act/seize-treasure/elf/compound" params:dic.toJSONString completion:completion];
}
///
/// - Parameter completion:
/// - Parameter salvageReq:
+ (void)treasureFailySalvageall:(HttpRequestHelperCompletion)completion salvageReq:(NSArray *)salvageReq {
NSMutableDictionary * dic = [NSMutableDictionary dictionary];
[dic safeSetObject:salvageReq forKey:@"expendList"];
[HttpRequestHelper postSkillCard:@"act/seize-treasure/elf/salvage" params:dic.toJSONString completion:completion];
}
///
/// - Parameter completion:
/// - Parameter page:
@@ -146,11 +139,7 @@
/// -
/// - Parameter completion:
/// - Parameter itemId: id
+ (void)treasureFailyConvert:(HttpRequestHelperCompletion)completion itemId:(NSString *)itemId roomUid:(nonnull NSString *)roomUid propIdStr:(NSString *)propIdStr propNumStr:(NSString *)propNumStr {
if(propIdStr.length > 0){
[self makeRequest:@"act/seize-treasure/convert" method:HttpRequestHelperMethodPOST completion:completion,__FUNCTION__, itemId, roomUid,propIdStr,propNumStr,nil];
return;
}
+ (void)treasureFailyConvert:(HttpRequestHelperCompletion)completion itemId:(NSString *)itemId roomUid:(nonnull NSString *)roomUid {
[self makeRequest:@"act/seize-treasure/convert" method:HttpRequestHelperMethodPOST completion:completion,__FUNCTION__, itemId, roomUid,nil];
}
@@ -172,13 +161,4 @@
[self makeRequest:@"act/seize-treasure/convert/record" method:HttpRequestHelperMethodGET completion:completion, __FUNCTION__, convertType, page, pageSize, nil];
}
///
/// - Parameters:
/// - completion:
/// - num:
/// - uid: id
+(void)buyElfShard:(HttpRequestHelperCompletion)completion num:(NSString*)num uid:(NSString *)uid{
[self makeRequest:@"act/seize-treasure/shard/buy" method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, num,uid, nil];
}
@end

View File

@@ -45,8 +45,6 @@ NS_ASSUME_NONNULL_BEGIN
///赠送的人的uid
@property (nonatomic,assign) NSInteger uid;
@property(nonatomic,assign) BOOL isHigh;
@end
NS_ASSUME_NONNULL_END

View File

@@ -34,20 +34,6 @@ NS_ASSUME_NONNULL_BEGIN
/// 兑换类型
@property (nonatomic, assign) NSInteger type;
@property(nonatomic,copy) NSArray *propItems;
@end
@interface TreasureFairyFragmentItemModel : NSObject
@property (nonatomic, copy) NSString *picUrl;
@property (nonatomic, copy) NSString *propId;
@property (nonatomic, copy) NSString *propName;
@property (nonatomic, copy) NSString *propNum;
@end
NS_ASSUME_NONNULL_END

Some files were not shown because too many files have changed in this diff Show More