<?php

/**

 * [WeEngine System] Copyright (c) 2014 WE7.CC

 * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.

 */



defined('IN_IA') or exit('Access Denied');



class FansTable extends We7Table {

	public function fansAll($openids) {

		global $_W;

		return $this->query->from('mc_mapping_fans')

			->where('openid', $openids)

			->where('uniacid', $_W['uniacid'])

			->where('acid', $_W['acid'])

			->getall('openid');

	}



	public function fansInfo($openid) {

		return $this->query->from('mc_mapping_fans')->where('openid', $openid)->get();

	}



	public function oauthFans($oauth_openid) {

		return $this->query->from('oauth_fans')->where('oauth_openid', $oauth_openid)->get();

	}

}