Commit 7f714c83b0ea093b8868dd3d5e17c10f18ba0c8d
1 parent
bc443e34
0.0.7
Showing
2 changed files
with
7 additions
and
5 deletions
CNLivePayCostModule.podspec
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | Pod::Spec.new do |s| | 9 | Pod::Spec.new do |s| |
| 10 | s.name = 'CNLivePayCostModule' | 10 | s.name = 'CNLivePayCostModule' |
| 11 | - s.version = '0.0.6' | 11 | + s.version = '0.0.7' |
| 12 | s.summary = 'A short description of CNLivePayCostModule.' | 12 | s.summary = 'A short description of CNLivePayCostModule.' |
| 13 | 13 | ||
| 14 | # This description is used to generate tags and improve search results. | 14 | # This description is used to generate tags and improve search results. |
CNLivePayCostModule/Classes/Core/CNLivePayCostModule.m
| @@ -212,15 +212,17 @@ | @@ -212,15 +212,17 @@ | ||
| 212 | { | 212 | { |
| 213 | NSString * orderId = [paramDict stringValueForKey:@"orderId" default:@""]; | 213 | NSString * orderId = [paramDict stringValueForKey:@"orderId" default:@""]; |
| 214 | NSString * body = [paramDict stringValueForKey:@"body" default:@""]; | 214 | NSString * body = [paramDict stringValueForKey:@"body" default:@""]; |
| 215 | - NSString * price = [paramDict stringValueForKey:@"price" default:@""]; | ||
| 216 | - NSString * couponFee = [paramDict stringValueForKey:@"coupon_fee" default:@""]; | ||
| 217 | - NSString * balanceFee = [paramDict stringValueForKey:@"balance_fee" default:@""]; | 215 | + NSString * price = [paramDict stringValueForKey:@"price" default:@"0"]; |
| 216 | + NSString * couponFee = [paramDict stringValueForKey:@"coupon_fee" default:@"0"]; | ||
| 217 | + NSString * balanceFee = [paramDict stringValueForKey:@"balance_fee" default:@"0"]; | ||
| 218 | NSString * notifyUrl = [paramDict stringValueForKey:@"notifyUrl" default:@""]; | 218 | NSString * notifyUrl = [paramDict stringValueForKey:@"notifyUrl" default:@""]; |
| 219 | NSString * password = [paramDict stringValueForKey:@"password" default:@""]; | 219 | NSString * password = [paramDict stringValueForKey:@"password" default:@""]; |
| 220 | 220 | ||
| 221 | NSString * p = [NSString stringWithFormat:@"%d",(NSInteger)([price floatValue]*100)]; | 221 | NSString * p = [NSString stringWithFormat:@"%d",(NSInteger)([price floatValue]*100)]; |
| 222 | + NSString * c = [NSString stringWithFormat:@"%d",(NSInteger)([couponFee floatValue]*100)]; | ||
| 223 | + NSString * b = [NSString stringWithFormat:@"%d",(NSInteger)([balanceFee floatValue]*100)]; | ||
| 222 | 224 | ||
| 223 | - [CNLivePayCostNetwork requestWithUMSPayForPrePayWithOrderId:orderId Body:body Price:p CouponFee:couponFee BalanceFee:balanceFee NotifyUrl:notifyUrl Type:payType ThreePayType:CNLivePayCostThreePayTypeShop FrmId:@"ios" PassWord:password CompleterBlcok:^(NSInteger statue) { | 225 | + [CNLivePayCostNetwork requestWithUMSPayForPrePayWithOrderId:orderId Body:body Price:p CouponFee:c BalanceFee:b NotifyUrl:notifyUrl Type:payType ThreePayType:CNLivePayCostThreePayTypeShop FrmId:@"ios" PassWord:password CompleterBlcok:^(NSInteger statue) { |
| 224 | if (resultBlock) resultBlock(statue); | 226 | if (resultBlock) resultBlock(statue); |
| 225 | }]; | 227 | }]; |
| 226 | } | 228 | } |