/** * @brief 支付费用 */ public function gePay_fee() { $payment_id = IFilter::act(IReq::get('pid'), 'int'); $total = IFilter::act(IReq::get('total')); //获得order_class的对象 $ord_class = new Order_Class(); $pay_fee = $ord_class->get_payment($payment_id, $total); //返回支付费用 echo $pay_fee; }