public function bindBuyerVerifier() { global $_FANWE; require_once FANWE_ROOT . "sdks/taobao/taobao.func.php"; $uid = $_FANWE['uid']; $data['is_buyer'] = 0; FDB::update('user', $data, "uid = {$uid}"); FanweService::instance()->cache->loadCache('logins'); $url = GetTaoBaoLoginUrl($_FANWE['cache']['logins']['taobao']['app_key']); $url = FU('tgo', array('url' => $url)); fSetCookie('callback_type', 'buyer'); fHeader("location:" . $url); }
private function jump() { $url = FU('tgo', array('url' => GetTaoBaoLoginUrl($this->config['app_key']))); fHeader("location:" . $url); }