code review by hf: fixes bug to weixin pay value float to init
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -870,7 +870,7 @@ class HomeController extends AbstractAction | @@ -870,7 +870,7 @@ class HomeController extends AbstractAction | ||
870 | break; | 870 | break; |
871 | } | 871 | } |
872 | 872 | ||
873 | - $totalFee = intval(strtr($orderDetail['data']['amount'], array('¥' => ''))) * 100; | 873 | + $totalFee = intval($orderDetail['data']['payment_amount'] * 100); |
874 | $openId = $this->getSession('weixinOpenId'); | 874 | $openId = $this->getSession('weixinOpenId'); |
875 | if (empty($openId)) { | 875 | if (empty($openId)) { |
876 | break; | 876 | break; |
-
Please register or login to post a comment