//file_put_contents('get.txt',$_SERVER['REQUEST_URI'].PHP_EOL.$html); // $array_data = json_decode(json_encode(simplexml_load_string($GLOBALS['HTTP_RAW_POST_DATA'], 'SimpleXMLElement', LIBXML_NOCDATA)), true); // $html = ''; // foreach($array_data as $key=>$value){ // $html .= $key.'=>'.$value.PHP_EOL; // } // file_put_contents('postget.txt',$GLOBALS['HTTP_RAW_POST_DATA'].PHP_EOL.$_SERVER['REQUEST_URI'].PHP_EOL.$html); $payType = isset($_REQUEST['pay_type']) ? $_REQUEST['pay_type'] : (isset($_REQUEST['attach']) ? $_REQUEST['attach'] : 'weixin'); $payMethodList = M('Config')->get_pay_method(); if (empty($payMethodList[$payType])) { json_return(1009, '您选择的支付方式不存在<br/>请更新支付方式'); } if ($payType == 'yeepay') { import('source.class.pay.Yeepay'); $payClass = new Yeepay(array(), $payMethodList[$payType]['config'], $wap_user); $payInfo = $payClass->notice(); pay_notice_call($payInfo); } else { if ($payType == 'tenpay') { import('source.class.pay.Tenpay'); $payClass = new Tenpay(array(), $payMethodList[$payType]['config'], $wap_user); $payInfo = $payClass->notice(); pay_notice_call($payInfo); } else { if (!empty($GLOBALS['HTTP_RAW_POST_DATA'])) { import('source.class.pay.Weixin'); $payClass = new Weixin(array(), $payMethodList[$payType]['config'], $wap_user, ''); $payInfo = $payClass->notice(); if ($payInfo['err_code'] === 0) { pay_notice_call($payInfo, $payInfo['echo_content']); } else {