\Thirdlogin_model

Description of third_login_model 第三方接口授权,登录model

Summary

Methods
Properties
Constants
__construct()
__get()
sina_login()
sina_callback()
select_third()
select_user_name()
select_user_qqname()
select_user_wechatname()
binding_third()
insert()
update()
delete()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$sina
$qq
$users
$third
$table
$db_user
$db_app
N/A

Properties

$sina

$sina : 

Type

$qq

$qq : 

Type

$users

$users : 

Type

$third

$third : 

Type

$table

$table : 

Type

$db_user

$db_user : 

Type

$db_app

$db_app : 

Type

Methods

__construct()

__construct() : void

Class constructor

__get()

__get(string  $key) 

__get magic

Allows models to access CI's loaded classes using the same syntax as controllers.

Parameters

string $key

sina_login()

sina_login() : \:

Returns

\: —

$sina_url----登录地址

sina_callback()

sina_callback(\:  $code) : \:

Parameters

\: $code

Returns

\: —

$user_message--用户信息

select_third()

select_third(\:  $where) : \:

Parameters

\: $where

Returns

\: —

第三方登录用户记录结果集

select_user_name()

select_user_name(  $where) 

Parameters

$where

select_user_qqname()

select_user_qqname(\:  $where) : \:

Parameters

\: $where

Returns

\: —

第三方登录用户记录结果集

select_user_wechatname()

select_user_wechatname(\:  $where) : \:

Parameters

\: $where

Returns

\: —

第三方登录用户记录结果集

binding_third()

binding_third(\:  $datas) : \:

Parameters

\: $datas

Returns

\:

insert()

insert(  $data) 

Parameters

$data

update()

update(  $field,   $data) 

Parameters

$field
$data

delete()

delete(  $userId) 

Parameters

$userId