예제 #1
0
 public function checkbind()
 {
     try {
         $platform_id = $this->input['platform_id'];
         $type = $this->input['type'];
         $identifierUserSystem = new identifierUserSystem();
         $identifier = $identifierUserSystem->setIdentifier((int) $this->input['identifier'])->checkIdentifier();
         //多用户系统
         $check_Bind = new check_Bind();
         $member_id = $check_Bind->bind_to_memberid($platform_id, $type, true, $identifier);
         $is_bind = $check_Bind->check_bind($member_id, $type, 0);
         if ($is_bind) {
             $Members = new members();
             $is_bind = array_merge($is_bind, $Members->get_member_info(' AND member_id = ' . $member_id, 'member_name,type'));
         }
         if (is_array($is_bind)) {
             foreach ($is_bind as $k => $v) {
                 $this->addItem_withkey($k, $v);
             }
         } else {
             $this->addItem_withkey('is_bind', $is_bind);
         }
         $this->output();
     } catch (Exception $e) {
         $this->errorOutput($e->getMessage(), $e->getCode());
     }
 }