當前位置: 首頁>>代碼示例>>PHP>>正文


PHP mobileMemberControl::__construct方法代碼示例

本文整理匯總了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'];
     }
 }
開發者ID:noikiy,項目名稱:meizhan,代碼行數:23,代碼來源:member_payment.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
 }
開發者ID:dotku,項目名稱:shopnc_cnnewyork,代碼行數:4,代碼來源:member_index.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->payment_code = isset($_GET['payment_code']) && trim($_GET['payment_code']) != '' ? trim($_GET['payment_code']) : 'alipay';
 }
開發者ID:xingch,項目名稱:myshop,代碼行數:5,代碼來源:member_payment.php

示例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']);
     }
 }
開發者ID:sdjncjc,項目名稱:meizhan,代碼行數:20,代碼來源:control.php


注:本文中的mobileMemberControl::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。