Commit 992d3f7d by houweibin

下单方法调整

parent 636557cf
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
NSString *checkout_token = checkout.token; NSString *checkout_token = checkout.token;
//需要保留小数点后两位(包括小数点后的.00),以保持与后台一致,从而验证通过 //需要保留小数点后两位(包括小数点后的.00),以保持与后台一致,从而验证通过
NSString *total_price = [NSString stringWithFormat:@"%.2f",checkout.totalPrice.floatValue]; NSString *total_price = [NSString stringWithFormat:@"%.2f",checkout.totalPrice.floatValue];
NSString *subject = [NSString stringWithFormat:@"Cemarose订单-%@",checkout.token]; NSString *subject = [NSString stringWithFormat:@"CemaroseOrder-%@",checkout.token];
#endif #endif
NSString *ip_address = @"127.0.0.1"; NSString *ip_address = @"127.0.0.1";
NSString *before_sign = [NSString stringWithFormat:@"checkout_token=%@&ip_address=%@&subject=%@&total_price=%@&key=%@", NSString *before_sign = [NSString stringWithFormat:@"checkout_token=%@&ip_address=%@&subject=%@&total_price=%@&key=%@",
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
NSString *checkout_token = checkout.token; NSString *checkout_token = checkout.token;
//需要保留小数点后两位(包括小数点后的.00),以保持与后台一致,从而验证通过 //需要保留小数点后两位(包括小数点后的.00),以保持与后台一致,从而验证通过
NSString *total_price = [NSString stringWithFormat:@"%.2f",checkout.totalPrice.floatValue]; NSString *total_price = [NSString stringWithFormat:@"%.2f",checkout.totalPrice.floatValue];
NSString *subject = [NSString stringWithFormat:@"Cemarose订单-%@",checkout.token]; NSString *subject = [NSString stringWithFormat:@"CemaroseOrder-%@",checkout.token];
#endif #endif
NSString *before_sign = [NSString stringWithFormat:@"checkout_token=%@&subject=%@&total_price=%@&key=%@", NSString *before_sign = [NSString stringWithFormat:@"checkout_token=%@&subject=%@&total_price=%@&key=%@",
checkout_token,subject,total_price,User_Pay_KEY]; checkout_token,subject,total_price,User_Pay_KEY];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment