Skip to content

Commit d4d30ed

Browse files
committed
bugfix
1 parent 99eb218 commit d4d30ed

File tree

7 files changed

+504
-16
lines changed

7 files changed

+504
-16
lines changed

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3191,7 +3191,7 @@
31913191
B19D4EF91F7247BA00C598F3 /* AlipaySDK.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = AlipaySDK.bundle; sourceTree = "<group>"; };
31923192
B19D4EFA1F7247BA00C598F3 /* AlipaySDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = AlipaySDK.framework; sourceTree = "<group>"; };
31933193
B19D4EFD1F724CDC00C598F3 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; };
3194-
B1B2BDAE1F78A59F00645EAD /* route.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = route.h; path = ../../../../../../Desktop/route.h; sourceTree = "<group>"; };
3194+
B1B2BDB01F79E74000645EAD /* net_route.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = net_route.h; sourceTree = "<group>"; };
31953195
B1C871121EADAEE1003DACF0 /* loading_monkey@2x.gif */ = {isa = PBXFileReference; lastKnownFileType = image.gif; path = "loading_monkey@2x.gif"; sourceTree = "<group>"; };
31963196
B1C871141EADF0B1003DACF0 /* messageAT@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "messageAT@3x.png"; sourceTree = "<group>"; };
31973197
B1C871151EADF0B1003DACF0 /* messageComment@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "messageComment@3x.png"; sourceTree = "<group>"; };
@@ -3837,7 +3837,7 @@
38373837
4E3068381E0B781A00AEE0CE /* LDSimplePing.h */,
38383838
4E3068391E0B781A00AEE0CE /* LDSimplePing.m */,
38393839
4E30683A1E0B781A00AEE0CE /* Route.h */,
3840-
B1B2BDAE1F78A59F00645EAD /* route.h */,
3840+
B1B2BDB01F79E74000645EAD /* net_route.h */,
38413841
);
38423842
path = LDNetDiagnoService;
38433843
sourceTree = "<group>";

Coding_iOS/Controllers/Shop/ExchangeGoodsViewController.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ - (void)exchangeActionClicked{
398398
mparms[@"receiverPhone"] = _receiverPhone;
399399
mparms[@"remark"] = _remark;
400400
mparms[@"giftId"] = _shopGoods.id;
401-
mparms[@"payment_amount"] = _shopGoods.curPrice;
401+
// mparms[@"payment_amount"] = _shopGoods.curPrice;
402402
mparms[@"point_discount"] = _shopGoods.curPointWillUse;
403403
// mparms[@"pay_method"] = @"Alipay";
404404
// mparms[@"password"] = [pwd sha1Str];
@@ -416,6 +416,7 @@ - (void)exchangeActionClicked{
416416
}
417417
}];
418418
}else{//码币兑换,直接成功
419+
[NSObject hideHUDQuery];;
419420
[NSObject showHudTipStr:@"恭喜你,提交订单成功!"];
420421
[weakSelf goToAfterPay];
421422
}
@@ -433,14 +434,17 @@ - (void)aliPayOrder:(NSString *)orderStr{
433434
}
434435

435436
- (void)handleAliResult:(NSDictionary *)resultDic{
437+
DebugLog(@"handleAliResult: %@", resultDic);
436438
BOOL isPaySuccess = ([resultDic[@"resultStatus"] integerValue] == 9000);
437439
[NSObject showHudTipStr:isPaySuccess? @"支付成功": @"支付失败"];
438440
[self goToAfterPay];
439441
}
440442

441443
- (void)goToAfterPay{
444+
UINavigationController *nav = self.navigationController;
445+
[nav popViewControllerAnimated:NO];
442446
ShopOrderViewController *orderViewController = [[ShopOrderViewController alloc] init];
443-
[self.navigationController pushViewController:orderViewController animated:YES];
447+
[nav pushViewController:orderViewController animated:YES];
444448
}
445449

446450
- (void)dealloc

Coding_iOS/Util/EADeviceToServerLog/LDNetDiagnoService/LDNetGetAddress.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#import <netinet/in.h>
2020

2121
#if TARGET_IPHONE_SIMULATOR
22-
#include "route.h"
22+
#include "net_route.h"
2323
#else
2424
#include "Route.h"
2525
#endif /*the very same from google-code*/

0 commit comments

Comments
 (0)