table('pay_log') . " WHERE log_id = '$out_trade_no'"; $order_id = $GLOBALS['db']->getOne($sql); $order = $db->getRow("SELECT * FROM " . $ecs->table('user_account') . " WHERE id = '$order_id'"); if ($order['amount'] > 0){ $order['pay_id'] = $GLOBALS['db']->getOne("select pay_id from ".$GLOBALS['ecs']->table('payment')." where pay_name = '".$order['payment']."'"); $order['order_amount'] = $order['amount']; $order['order_id'] = $out_trade_no.'-'.time(); $order['order_sn'] = $out_trade_no; $payment = payment_info($order['pay_id']); include_once('../includes/modules/payment/' . $payment['pay_code'] . '.php'); $pay_obj = new $payment['pay_code']; $code = $pay_obj->get_code($order, unserialize_config($payment['pay_config'])); }else{ echo 1;exit; } ?> 微信安全支付