function _get_info($uid, $access_token = null) { $p = array('uid' => $uid); if ($access_token) { $p['access_token'] = $access_token; } return sina_weibo_api('2/users/show', $p, 'GET', $this->oauth); }
return; } if ('sina' == $xbt['from']) { return; } if ($xbt['mid'] < 1) { return; } $p['id'] = $xbt['mid']; if (in_array($topic['type'], array('both', 'forward'))) { $p['status'] = $content; $p['is_comment'] = 'both' == $topic['type'] ? 1 : 0; $rets = sina_weibo_api('2/statuses/repost', $p); } else { $p['comment'] = $content; $rets = sina_weibo_api('2/comments/create', $p); } } if ($rets['error'] && $rets['error_code']) { if (jget('debug')) { debug($rets); } jlog('to_xwb.inc', $rets); } $mid = $rets['idstr'] ? $rets['idstr'] : $rets['id']; if ($mid > 0) { DB::query("replace into " . DB::table('xwb_bind_topic') . " (`tid`, `mid`) values ('{$tid}', '{$mid}')"); } } else { $GLOBALS['jsg_tid'] = $data['tid']; $GLOBALS['jsg_totid'] = $data['totid'];