Browse Source

手机红包浮点计算bug修正

songjiyuan 9 years atrás
parent
commit
74e8d2d590
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mobile/control/app_pay.php

+ 1 - 1
mobile/control/app_pay.php

@@ -59,7 +59,7 @@ class app_payControl extends mbMemberControl
         Log::record($this->toString($result['data']), Log::DEBUG);
         // 判断是否需要支付
         $output = array();
-        if (intval($result['data']['api_pay_amount']) > 0)
+        if (floatval($result['data']['api_pay_amount']) > 0.001 )
         {
             $output['need_pay'] = 1;
             $ret = $this->api_pay($result['data'], $payment);