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 { pay_notice_call($payInfo); } } } } function getSign($data, $salt) { foreach ($data as $key => $value) { if (is_array($value)) { $validate[$key] = getSign($value, $salt); } else { $validate[$key] = $value;