From d8be1faef1c3ee534676fcf7f870796f6ceaa6b6 Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Fri, 1 Nov 2019 09:49:29 +0800 Subject: [PATCH] =?UTF-8?q?price=20=E4=B8=A4=E4=B8=AA=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Sdk/Controller/PayH5Controller.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Application/Sdk/Controller/PayH5Controller.class.php b/Application/Sdk/Controller/PayH5Controller.class.php index 55ac34d0..dc984ee4 100644 --- a/Application/Sdk/Controller/PayH5Controller.class.php +++ b/Application/Sdk/Controller/PayH5Controller.class.php @@ -47,6 +47,7 @@ class PayH5Controller extends BaseController{ $request['price'] = $price; $request['pay_order_number'] = 'PF_'.date('Ymd').date('His').sp_random_string(4); } + $price = round($price, 2); if($price <= 0){ redirect(U('Spend/notice',array('user_id'=>$user_id,'game_id'=>$game_id,'msg'=>'充值金额有误', 'user_token' => $this->userToken)));exit; }