Commit 7f714c83b0ea093b8868dd3d5e17c10f18ba0c8d
1 parent
bc443e34
0.0.7
Showing
2 changed files
with
7 additions
and
5 deletions
CNLivePayCostModule.podspec
CNLivePayCostModule/Classes/Core/CNLivePayCostModule.m
| ... | ... | @@ -212,15 +212,17 @@ |
| 212 | 212 | { |
| 213 | 213 | NSString * orderId = [paramDict stringValueForKey:@"orderId" default:@""]; |
| 214 | 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 | 218 | NSString * notifyUrl = [paramDict stringValueForKey:@"notifyUrl" default:@""]; |
| 219 | 219 | NSString * password = [paramDict stringValueForKey:@"password" default:@""]; |
| 220 | 220 | |
| 221 | 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 | 226 | if (resultBlock) resultBlock(statue); |
| 225 | 227 | }]; |
| 226 | 228 | } | ... | ... |