payAll($dingdan,$totalMoney,$payType); if ($return == 2){ $result = array('errno'=>0,'msg'=>'success','data'=>array('isConsumed'=>2)); echo json_encode($result);die; } } } $result = array('errno'=>1,'msg'=>'fail'); echo json_encode($result); // $string = ArrayToString($_POST); // $receiveFile = dirname(dirname(dirname(__FILE__)))."/data/api/baidu/notify.txt"; // $fp = @fopen($receiveFile, "a"); // flock($fp, LOCK_EX); // fputs($fp, $string.'||'.$qm."\r\n"); // fclose($fp); ?>