本文整理匯總了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']);
}
}