本文整理汇总了PHP中mobileMemberControl::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP mobileMemberControl::__construct方法的具体用法?PHP mobileMemberControl::__construct怎么用?PHP mobileMemberControl::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mobileMemberControl
的用法示例。
在下文中一共展示了mobileMemberControl::__construct方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
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'];
}
}
示例2: __construct
public function __construct()
{
parent::__construct();
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->payment_code = isset($_GET['payment_code']) && trim($_GET['payment_code']) != '' ? trim($_GET['payment_code']) : 'alipay';
}
示例4: __construct
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']);
}
}