Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ios1x
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
ios1x
Commits
ae7dc845
Commit
ae7dc845
authored
Jun 30, 2017
by
houweibin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1,small fix
parent
fa7590e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
KWMPayUtil.m
iCemarose/Class/Util/KWMPayUtil.m
+4
-4
No files found.
iCemarose/Class/Util/KWMPayUtil.m
View file @
ae7dc845
...
...
@@ -41,9 +41,9 @@
NSString
*
subject
=
@"test"
;
#else
NSString
*
checkout_token
=
checkout
.
token
;
//需要保留小数点后两位,以保持与后台一致,从而验证通过
//需要保留小数点后两位
(包括小数点后的.00)
,以保持与后台一致,从而验证通过
NSString
*
total_price
=
[
NSString
stringWithFormat
:
@"%.2f"
,
checkout
.
totalPrice
.
floatValue
];
NSString
*
subject
=
@"Cemarose订单"
;
NSString
*
subject
=
[
NSString
stringWithFormat
:
@"Cemarose订单-%@"
,
checkout
.
token
]
;
#endif
NSString
*
ip_address
=
@"127.0.0.1"
;
NSString
*
before_sign
=
[
NSString
stringWithFormat
:
@"checkout_token=%@&ip_address=%@&subject=%@&total_price=%@&key=%@"
,
...
...
@@ -69,9 +69,9 @@
NSString
*
subject
=
@"test"
;
#else
NSString
*
checkout_token
=
checkout
.
token
;
//需要保留小数点后两位,以保持与后台一致,从而验证通过
//需要保留小数点后两位
(包括小数点后的.00)
,以保持与后台一致,从而验证通过
NSString
*
total_price
=
[
NSString
stringWithFormat
:
@"%.2f"
,
checkout
.
totalPrice
.
floatValue
];
NSString
*
subject
=
@"Cemarose订单"
;
NSString
*
subject
=
[
NSString
stringWithFormat
:
@"Cemarose订单-%@"
,
checkout
.
token
]
;
#endif
NSString
*
before_sign
=
[
NSString
stringWithFormat
:
@"checkout_token=%@&subject=%@&total_price=%@&key=%@"
,
checkout_token
,
subject
,
total_price
,
User_Pay_KEY
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment