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
ecf2e870
Commit
ecf2e870
authored
Jun 21, 2017
by
houweibin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1,small fix
parent
b1783b7f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
KWMBeforePayVC.m
iCemarose/Class/UI/ShopCart/KWMBeforePayVC.m
+1
-7
KWMPayUtil.m
iCemarose/Class/Util/KWMPayUtil.m
+6
-4
No files found.
iCemarose/Class/UI/ShopCart/KWMBeforePayVC.m
View file @
ecf2e870
...
...
@@ -607,6 +607,7 @@
-
(
void
)
validateOrderPayResult
{
//微信支付,用户支付后,当用户没有点击完成按钮,而是直接使用home键,或者点击状态栏左上角返回APP订单页面时,微信的回调不会调用,而很容易出现订单结果丢失的情况,所以需要再确认一次订单是否完成。
//支付宝暂时没有这种问题。
//checkout与order暂无法直接关联,现该api一直返回未支付。
if
(
self
.
beforePayData
&&
self
.
beforePayData
.
wechatPayData
){
self
.
beforePayData
.
wechatPayData
=
nil
;
__weak
KWMBeforePayVC
*
weakSelf
=
self
;
...
...
@@ -690,11 +691,4 @@
}
//判断订单是否支付
-
(
void
)
requestCheckPay
:
(
BUYCheckout
*
)
checkout
{
[
self
showLoading
];
}
@end
iCemarose/Class/Util/KWMPayUtil.m
View file @
ecf2e870
...
...
@@ -39,8 +39,9 @@
NSString
*
subject
=
@"test"
;
#else
NSString
*
checkout_token
=
checkout
.
token
;
NSString
*
total_price
=
checkout
.
totalPrice
.
stringValue
;
NSString
*
subject
=
@""
;
//需要保留小数点后两位,以保持与后台一致,从而验证通过
NSString
*
total_price
=
[
NSString
stringWithFormat
:
@"%.2f"
,
checkout
.
totalPrice
.
floatValue
];
NSString
*
subject
=
@"Cemarose订单"
;
#endif
NSString
*
ip_address
=
@"127.0.0.1"
;
NSString
*
before_sign
=
[
NSString
stringWithFormat
:
@"checkout_token=%@&ip_address=%@&subject=%@&total_price=%@&key=%@"
,
...
...
@@ -66,8 +67,9 @@
NSString
*
subject
=
@"test"
;
#else
NSString
*
checkout_token
=
checkout
.
token
;
NSString
*
total_price
=
checkout
.
totalPrice
.
stringValue
;
NSString
*
subject
=
@""
;
//需要保留小数点后两位,以保持与后台一致,从而验证通过
NSString
*
total_price
=
[
NSString
stringWithFormat
:
@"%.2f"
,
checkout
.
totalPrice
.
floatValue
];
NSString
*
subject
=
@"Cemarose订单"
;
#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