Exemple #1
0
 public function __construct()
 {
     parent::__construct();
     $model_mb_user_token = Model('mb_user_token');
     $key = $_POST['key'];
     if (empty($key)) {
         $key = $_GET['key'];
     }
     $mb_user_token_info = $model_mb_user_token->getMbUserTokenInfoByToken($key);
     if (empty($mb_user_token_info)) {
         output_error('登录失败');
     }
     $model_member = Model('member');
     $this->member_info = $model_member->getMemberInfoByID($mb_user_token_info['member_id']);
     $this->member_info['client_type'] = $mb_user_token_info['client_type'];
     if (empty($this->member_info)) {
         output_error('登录失败');
     } else {
         //读取卖家信息
         $seller_info = Model('seller')->getSellerInfo(array('member_id' => $this->member_info['member_id']));
         $this->member_info['store_id'] = $seller_info['store_id'];
     }
 }
Exemple #2
0
 public function __construct()
 {
     parent::__construct();
 }