// 获取支付金额 $amount=''; if($_SERVER['REQUEST_METHOD']=='POST'){ $amount=$_POST['total']; }else{ $amount=$_GET['total']; }