Commit ae7dc845 by houweibin

1,small fix

parent fa7590e7
...@@ -41,9 +41,9 @@ ...@@ -41,9 +41,9 @@
NSString *subject = @"test"; NSString *subject = @"test";
#else #else
NSString *checkout_token = checkout.token; NSString *checkout_token = checkout.token;
//需要保留小数点后两位,以保持与后台一致,从而验证通过 //需要保留小数点后两位(包括小数点后的.00),以保持与后台一致,从而验证通过
NSString *total_price = [NSString stringWithFormat:@"%.2f",checkout.totalPrice.floatValue]; NSString *total_price = [NSString stringWithFormat:@"%.2f",checkout.totalPrice.floatValue];
NSString *subject = @"Cemarose订单"; NSString *subject = [NSString stringWithFormat:@"Cemarose订单-%@",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=%@",
...@@ -69,9 +69,9 @@ ...@@ -69,9 +69,9 @@
NSString *subject = @"test"; NSString *subject = @"test";
#else #else
NSString *checkout_token = checkout.token; NSString *checkout_token = checkout.token;
//需要保留小数点后两位,以保持与后台一致,从而验证通过 //需要保留小数点后两位(包括小数点后的.00),以保持与后台一致,从而验证通过
NSString *total_price = [NSString stringWithFormat:@"%.2f",checkout.totalPrice.floatValue]; NSString *total_price = [NSString stringWithFormat:@"%.2f",checkout.totalPrice.floatValue];
NSString *subject = @"Cemarose订单"; NSString *subject = [NSString stringWithFormat:@"Cemarose订单-%@",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