public function __construct() { parent::__construct(); if ($_GET['op'] != 'payment_list') { $payment_code = 'alipay'; if (in_array($_GET['op'], array('wx_app_pay', 'wx_app_pay3', 'wx_app_vr_pay', 'wx_app_vr_pay3'), true)) { $payment_code = 'wxpay'; } else { if (isset($_GET['payment_code'])) { $payment_code = $_GET['payment_code']; } } $model_mb_payment = Model('mb_payment'); $condition = array(); $condition['payment_code'] = $payment_code; $mb_payment_info = $model_mb_payment->getMbPaymentOpenInfo($condition); if (!$mb_payment_info) { output_error('支付方式未开启'); } $this->payment_code = $payment_code; $this->payment_config = $mb_payment_info['payment_config']; } }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->payment_code = isset($_GET['payment_code']) && trim($_GET['payment_code']) != '' ? trim($_GET['payment_code']) : 'alipay'; }
public function __construct() { parent::__construct(); $model_member = Model('mz_member'); $mz_member_info = $model_member->getMemberInfo(array('member_id' => $this->member_info['member_id'])); if (empty($mz_member_info)) { $condition = array(); $condition['member_id'] = $this->member_info['member_id']; $condition['client_type'] = "mz"; Model('mb_user_token')->delMbUserToken($condition); output_error('用户信息错误,请重新登录', array('team' => '0')); } if ($mz_member_info['team_id'] == 0) { output_error('未加入战队', array('team' => 0)); } else { $this->member_info['mz_integral'] = $mz_member_info['integral']; $this->member_info['member_type'] = $mz_member_info['type']; $this->member_info['team_info'] = Model('mz_team')->getTeamInfoByID($mz_member_info['team_id']); } }