• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ihttp_get函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ihttp_get函数的典型用法代码示例。如果您正苦于以下问题:PHP ihttp_get函数的具体用法?PHP ihttp_get怎么用?PHP ihttp_get使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了ihttp_get函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getJsApiTicket

 private function getJsApiTicket()
 {
     global $_W;
     $data = array();
     $wechat = pdo_fetch("SELECT access_token FROM " . tablename('wechats') . " WHERE weid = {$_W['weid']}");
     $AccessToken = iunserializer($wechat['access_token']);
     $now = time();
     if ($AccessToken['expire'] < $now || !$AccessToken['ticket']) {
         //失效时,从服务器获取最新的access_token和ticket
         $res = ihttp_get("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={$this->appId}&secret={$this->appSecret}");
         $content = @json_decode($res['content'], true);
         $access_token = $content['access_token'];
         $res1 = ihttp_get("https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=jsapi&access_token={$access_token}");
         $content1 = @json_decode($res1['content'], true);
         $ticket = $content1['ticket'];
         $data['token'] = $access_token;
         $data['expire'] = $now + 7000;
         //是7200秒失效,这里取7000
         $data['ticket'] = $ticket;
         pdo_update("wechats", array('access_token' => serialize($data)), array('weid' => $_W['weid']));
     } else {
         $ticket = $AccessToken['ticket'];
     }
     return $ticket;
 }
开发者ID:alextiannus,项目名称:wormwood_wechat,代码行数:25,代码来源:site.php


示例2: getJsApiTicket

 public function getJsApiTicket()
 {
     if (!empty($_W['account']['jsapi_ticket']) && is_array($_W['account']['jsapi_ticket']) && !empty($_W['account']['jsapi_ticket']['ticket']) && !empty($_W['account']['jsapi_ticket']['expire']) && $_W['account']['jsapi_ticket']['expire'] > TIMESTAMP) {
         return $_W['account']['jsapi_ticket']['ticket'];
     }
     load()->func('communication');
     $access_token = $this->getAccessToken();
     if (is_error($access_token)) {
         return $access_token;
     }
     $url = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token={$access_token}&type=jsapi";
     $content = ihttp_get($url);
     if (is_error($content)) {
         return error(-1, '调用接口获取微信公众号 jsapi_ticket 失败, 错误信息: ' . $content['message']);
     }
     $result = @json_decode($content['content'], true);
     if (empty($result) || intval($result['errcode']) != 0 || $result['errmsg'] != 'ok') {
         return error(-1, '获取微信公众号 jsapi_ticket 结果错误, 错误信息: ' . $result['errmsg']);
     }
     $record = array();
     $record['ticket'] = $result['ticket'];
     $record['expire'] = TIMESTAMP + $result['expires_in'] - 200;
     $row = array();
     $row['jsapi_ticket'] = iserializer($record);
     pdo_update('account_wechats', $row, array('acid' => $_W['account']['acid']));
     $_W['account']['jsapi_ticket'] = $record;
     return $record['ticket'];
 }
开发者ID:keycoolkui,项目名称:weixinfenxiao,代码行数:28,代码来源:jssdk.class.php


示例3: getUserInfo

 public function getUserInfo($access_token, $openid)
 {
     $api_url = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=" . $access_token . "&openid=" . $openid . "&lang=zh_CN";
     $content = ihttp_get($api_url);
     $userInfo = @json_decode($content['content'], true);
     return $userInfo;
 }
开发者ID:ChainBoy,项目名称:wxfx,代码行数:7,代码来源:oauth2.class.php


示例4: respond

 public function respond()
 {
     $content = $this->message['content'];
     global $_W;
     if (!$this->inContext) {
         $this->beginContext(60);
         return $this->respText('点击下方的“+”,发送您的地理位置。然后我们会返回您周边的酒店!');
     } else {
         if (isset($this->message['location_x']) && isset($this->message['location_y'])) {
             $this->endContext();
             load()->func('communication');
             $data = ihttp_get("http://api.map.baidu.com/telematics/v3/local?location={$this->message['location_y']},{$this->message['location_x']}&keyWord=酒店&output=json&ak=jhSS7UjKAS9P9h2vDfhacjmr");
             $data = json_decode($data['content'], true);
             if ($data['status'] === 'Success') {
                 foreach ($data['pointList'] as $key => $val) {
                     if ((int) $key > 7) {
                         break;
                     }
                     $return[] = array('title' => $val['name'], 'description' => $val['address'], 'picurl' => '', 'url' => $val['additionalInformation']['link'][0]['url']);
                 }
                 return $this->respNews($return);
             } else {
                 return $this->respText("没有查询结果。");
             }
         } else {
             $this->endContext();
         }
         return false;
     }
 }
开发者ID:aspnmy,项目名称:weizan,代码行数:30,代码来源:processor.php


示例5: GetRouterInter

 private function GetRouterInter($iur, $appid, $appkey, $nodeid, $openid)
 {
     $arrResult = array('flag' => 0, 'result' => '', 'token' => '', 'debug' => '');
     $url = "{$iur}?appId={$appid}&appKey={$appkey}&nodeId={$nodeid}&openId={$openid}";
     $rsp = ihttp_get($url);
     $dat = $rsp['content'];
     //获取接口情况
     if (!empty($dat)) {
         $result = json_decode($dat, true);
         if (!is_array($result)) {
             $arrResult['flag'] = 0;
             $arrResult['result'] = '接口返回参数不是JSON格式';
             $arrResult['debug'] = $dat;
         } else {
             if ($result['result'] == 'ok') {
                 $arrResult['flag'] = 1;
                 $arrResult['result'] = $result['url'];
                 $arrResult['token'] = $result['token'];
             } elseif ($result['result'] == 'error') {
                 $arrResult['flag'] = -1;
                 $arrResult['result'] = $this->errcodetrans($result['errorCode']);
             } else {
                 $arrResult['flag'] = 0;
                 $arrResult['result'] = '返回状态异常,请联系路由器接口提供方';
             }
         }
     } else {
         $arrResult['flag'] = 0;
         $arrResult['result'] = '接口无响应';
         $arrResult['debug'] = $url;
     }
     return $arrResult;
 }
开发者ID:alextiannus,项目名称:wormwood_wechat,代码行数:33,代码来源:processor.php


示例6: account_weixin_token

function account_weixin_token($account)
{
    if (is_array($account['access_token']) && !empty($account['access_token']['token']) && !empty($account['access_token']['expire']) && $account['access_token']['expire'] > TIMESTAMP) {
        return $account['access_token']['token'];
    } else {
        if (empty($account['weid'])) {
            message('参数错误.');
        }
        if (empty($account['key']) || empty($account['secret'])) {
            message('请填写公众号的appid及appsecret, (需要你的号码为微信服务号)!', create_url('account/post', array('id' => $account['weid'])), 'error');
        }
        $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={$account['key']}&secret={$account['secret']}";
        $content = ihttp_get($url);
        if (empty($content)) {
            message('获取微信公众号授权失败, 请稍后重试!');
        }
        $token = @json_decode($content['content'], true);
        if (empty($token) || !is_array($token)) {
            message('获取微信公众号授权失败, 请稍后重试! 公众平台返回原始数据为: <br />' . $token);
        }
        if (empty($token['access_token']) || empty($token['expires_in'])) {
            message('解析微信公众号授权失败, 请稍后重试!');
        }
        $record = array();
        $record['token'] = $token['access_token'];
        $record['expire'] = TIMESTAMP + $token['expires_in'];
        $row = array();
        $row['access_token'] = iserializer($record);
        pdo_update('wechats', $row, array('weid' => $account['weid']));
        return $record['token'];
    }
}
开发者ID:alextiannus,项目名称:wormwood_wechat,代码行数:32,代码来源:account.mod.php


示例7: getCardTicket

 public function getCardTicket()
 {
     $cachekey = "cardticket:{$this->account['acid']}";
     $cache = cache_load($cachekey);
     if (!empty($cache) && !empty($cache['ticket']) && $cache['expire'] > TIMESTAMP) {
         $this->account['card_ticket'] = $cache;
         return $cache['token'];
     }
     load()->func('communication');
     $access_token = $this->getAccessToken();
     if (is_error($access_token)) {
         return $access_token;
     }
     $url = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token={$access_token}&type=wx_card";
     $content = ihttp_get($url);
     if (is_error($content)) {
         return error(-1, '调用接口获取微信公众号 card_ticket 失败, 错误信息: ' . $content['message']);
     }
     $result = @json_decode($content['content'], true);
     if (empty($result) || intval($result['errcode']) != 0 || $result['errmsg'] != 'ok') {
         return error(-1, '获取微信公众号 card_ticket 结果错误, 错误信息: ' . $result['errmsg']);
     }
     $record = array();
     $record['ticket'] = $result['ticket'];
     $record['expire'] = TIMESTAMP + $result['expires_in'] - 200;
     $this->account['card_ticket'] = $record;
     cache_write($cachekey, $record);
     return $record['ticket'];
 }
开发者ID:eduNeusoft,项目名称:weixin,代码行数:29,代码来源:coupon.class.php


示例8: account_mechat_token

function account_mechat_token($acmechat)
{
    if (is_array($acmechat['access_token']) && !empty($acmechat['access_token']['token']) && !empty($acmechat['access_token']['expire']) && $acmechat['access_token']['expire'] > TIMESTAMP) {
        return $acmechat['access_token']['token'];
    } else {
        if (empty($acmechat['weid'])) {
            message('参数错误.');
        }
        if (empty($acmechat['appid']) || empty($acmechat['appsecret'])) {
            message('请填写开发者的appid及appsecret, (需要你的号码为美洽开发者)!', create_url('index/module/display', array('name' => 'mechat')), 'error');
        }
        $url = "http://open.mobilechat.im/cgi-bin/token?grant_type=client_credential&appid={$acmechat['appid']}&secret={$acmechat['appsecret']}";
        $content = ihttp_get($url);
        if (empty($content)) {
            message('获取美洽开发者授权失败, 请稍后重试!');
        }
        $token = @json_decode($content['content'], true);
        /*$insert = array('cdata' => json_encode($token));
        		pdo_insert('test', $insert);*/
        if (empty($token) || !is_array($token)) {
            message('获取美洽开发者授权失败, 请稍后重试! 公众平台返回原始数据为: <br />' . $token);
        }
        if (empty($token['access_token']) || empty($token['expire_in'])) {
            message("解析美洽开发者授权失败. <br />URL:{$url}<br />错误代码为: {$token['errcode']} <br />错误信息为: {$token['errmsg']}");
        }
        $record = array();
        $record['token'] = $token['access_token'];
        $record['expire'] = TIMESTAMP + $token['expires_in'];
        $row = array();
        $row['access_token'] = iserializer($record);
        pdo_update('mechat', $row, array('weid' => $acmechat['weid']));
        return $record['token'];
    }
}
开发者ID:alextiannus,项目名称:wormwood_wechat,代码行数:34,代码来源:function.php


示例9: __construct

 public function __construct()
 {
     global $_W;
     load()->func('communication');
     $openid = $_W['openid'];
     if (!empty($openid)) {
         $account = account_fetch($_W['acid']);
         //获取公众号信息
         $url = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=" . $account['access_token']['token'] . "&openid=" . $openid . "&lang=zh_CN";
         $re = ihttp_get($url);
         //ihttp_get()封装的 http GET 请求方法
         if ($re['code'] == 200) {
             $content = json_decode($re['content'], true);
             if ($content['subscribe'] == 1) {
                 //此人已关注
                 $data = array('uniacid' => $_W['uniacid'], 'from_user' => $openid, 'nickname' => $content['nickname'], 'avatar' => $content['headimgurl']);
                 $profile = pdo_fetch("SELECT id FROM " . tablename('auction_member') . " WHERE uniacid ='{$_W['uniacid']}' and from_user = '{$openid}'");
                 if (empty($profile)) {
                     pdo_insert('auction_member', $data);
                 } else {
                     pdo_update('auction_member', $data, array('id' => $profile['id']));
                 }
             } else {
                 $userinfo = mc_oauth_userinfo();
                 $data = array('uniacid' => $_W['uniacid'], 'from_user' => $userinfo['openid'], 'nickname' => $userinfo['nickname'], 'avatar' => $userinfo['avatar']);
                 $profile = pdo_fetch("SELECT id FROM " . tablename('auction_member') . " WHERE uniacid ='{$_W['uniacid']}' and from_user = '{$userinfo['openid']}'");
                 if (empty($profile)) {
                     pdo_insert('auction_member', $data);
                 } else {
                     pdo_update('auction_member', $data, array('id' => $profile['id']));
                 }
             }
         }
     }
 }
开发者ID:wisemyth,项目名称:weizan,代码行数:35,代码来源:site.php


示例10: cache_build_announcement

function cache_build_announcement()
{
    $response = ihttp_get('http://www.we7.cc/api/v1/announcement.php');
    $response['content'] = json_decode($response['content'], TRUE);
    $cache = array('status' => $response['status'], 'content' => $response['content'], 'lastupdate' => TIMESTAMP);
    cache_write('announcement', $cache);
}
开发者ID:yunsite,项目名称:my-we7,代码行数:7,代码来源:cache.mod.php


示例11: ajaxsns

 private function ajaxsns()
 {
     $msg = urlencode($this->message['content']);
     $api = "http://api.ajaxsns.com/api.php?key=free&appid=0&msg=%s";
     $dat = ihttp_get(sprintf($api, $msg));
     return $dat;
 }
开发者ID:alextiannus,项目名称:wormwood_wechat,代码行数:7,代码来源:processor.php


示例12: fetchUserInfo

 private function fetchUserInfo($openid)
 {
     $token = $this->fetchAccess();
     $url = "https://api.weixin.qq.com/cgi-bin/user/info?access_token={$token}&openid={$openid}&lang=zh_CN";
     $response = ihttp_get($url);
     if (is_error($response)) {
         return error(-1, "访问公众平台接口失败, 错误: {$response['message']}");
     }
     $result = @json_decode($response['content'], true);
     if (empty($result)) {
         return error(-2, "接口调用失败, 错误信息: {$response}");
     } elseif (!empty($result['errcode'])) {
         return error(-3, "访问微信接口错误, 错误代码: {$result['errcode']}, 错误信息: {$result['errmsg']}");
     }
     $ret = array();
     $ret['nickname'] = $result['nickname'];
     $ret['gender'] = $result['sex'];
     $ret['residecity'] = $result['city'];
     $ret['resideprovince'] = $result['province'];
     $ret['avatar'] = $result['headimgurl'];
     if (!empty($ret['avatar'])) {
         $ret['avatar'] = rtrim($ret['avatar'], '0');
         $ret['avatar'] .= '132';
     }
     $ret['original'] = $result;
     return $ret;
 }
开发者ID:keycoolkui,项目名称:weixinfenxiao,代码行数:27,代码来源:MicrobCore.class.php


示例13: getUserInfo

 public function getUserInfo($from_user)
 {
     $ACCESS_TOKEN = $this->getAccessToken();
     $OPENID = $from_user;
     $url = "https://api.weixin.qq.com/cgi-bin/user/info?access_token={$ACCESS_TOKEN}&openid={$OPENID}&lang=zh_CN";
     load()->func('communication');
     $json = ihttp_get($url);
     $userInfo = @json_decode($json['content'], true);
     return $userInfo;
 }
开发者ID:keycoolkui,项目名称:weixinfenxiao,代码行数:10,代码来源:wechatapi.php


示例14: setbg

 private function setbg($bg, $fan)
 {
     global $_W;
     load()->func('communication');
     load()->func('file');
     $bg = tomedia($bg);
     $file = ihttp_get($bg);
     $file = $file['content'];
     $img = '/images/' . $_W['uniacid'] . '/hx_qr/img/' . $fan['id'] . '.jpg';
     file_write($img, $file);
     return $img;
 }
开发者ID:aspnmy,项目名称:weizan,代码行数:12,代码来源:site.php


示例15: get_openid

 public function get_openid($id, $code, $appid, $appsecret)
 {
     global $_GPC, $_W;
     load()->func('communication');
     $oauth2_code = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=" . $appid . "&secret=" . $appsecret . "&code=" . $code . "&grant_type=authorization_code";
     $content = ihttp_get($oauth2_code);
     $token = @json_decode($content['content'], true);
     if (!empty($token) && is_array($token) && $token['errmsg'] == 'invalid code') {
         $this->get_code($id, $appid);
     }
     if (empty($token) || !is_array($token) || empty($token['access_token']) || empty($token['openid'])) {
         message('未获取到 openid , 请刷新重试!');
     }
     return $token['openid'];
 }
开发者ID:keycoolkui,项目名称:weixinfenxiao,代码行数:15,代码来源:site.php


示例16: respond

 public function respond()
 {
     $content = $this->message['content'];
     $openid = $this->message['from'];
     $appId = $this->module['config']['appId'];
     $appKey = $this->module['config']['appKey'];
     $nodeId = $this->module['config']['nodeId'];
     $url = "http://service.rippletek.com/Portal/Wx/wxFunLogin?appId=%s&appKey=%s&nodeId=%s&openId=%s";
     $result = ihttp_get(sprintf($url, $appId, $appKey, $nodeId, $openid));
     $info = json_decode($result['content'], true);
     if ($info['result'] == "ok") {
         return $this->respText(" 本机上网请 <a href=\"" . $info['url'] . "\">直接点击</a>, 如其他设备上网,请在设备登陆界面输入验证码 : " . $info["token"] . "(验证码有效期 10 分钟。)");
     } else {
         return $this->respText("登录失败,请重试。");
     }
 }
开发者ID:alextiannus,项目名称:wormwood_wechat,代码行数:16,代码来源:processor.php


示例17: getUserInfo

 public function getUserInfo($OPENID)
 {
     load()->func('communication');
     $ACCESS_TOKEN = $this->getAccessToken();
     $url = "https://api.weixin.qq.com/cgi-bin/user/info?access_token={$ACCESS_TOKEN}&openid={$OPENID}&lang=zh_CN";
     $json = ihttp_get($url);
     $userInfo = @json_decode($json['content'], true);
     $userInfo['from_user'] = $userInfo['openid'];
     $userInfo['nickname'] = $userInfo['nickname'];
     $userInfo['gender'] = $userInfo['sex'];
     $userInfo['nationality'] = $userInfo['country'];
     $userInfo['resideprovince'] = $userInfo['province'];
     $userInfo['residecity'] = $userInfo['city'];
     $userInfo['avatar'] = $userInfo['headimgurl'];
     return $userInfo;
 }
开发者ID:aspnmy,项目名称:weizan,代码行数:16,代码来源:wechatapi.class.inc.php


示例18: getUserInfo

 private function getUserInfo($o)
 {
     global $_W, $_GPC;
     checkaccount();
     if (empty($o)) {
         message('重要参数丢失..', '', 'error');
         exit;
     }
     if (empty($_W['account']['key']) || empty($_W['account']['secret'])) {
         $user = pdo_fetch('SELECT from_user,weid,nickname,avatar FROM' . tablename('fans') . "WHERE weid = :weid AND from_user = :from_user", array(':from_user' => $o, ':weid' => $_W['weid']));
         if (empty($user)) {
             $user = array('weid' => $_W['weid'], 'from_user' => $o, 'createtime' => TIMESTAMP);
             /* pdo_insert('fans',$user); */
         }
         if (empty($user['nickname'])) {
             $user['nickname'] = 'Anonymous-' . substr($o, -4);
         }
         if (empty($user['avatar'])) {
             $user['avatar'] = './source/modules/winestore/template/style/null_header.png';
         }
         return $user;
     } else {
         $access_token = account_weixin_token($_W['account']);
         $content = ihttp_get(sprintf($this->getUserInfoUrl, $access_token, $o));
         if ($content['errcode'] != 0) {
             message(account_weixin_code($content['errcode']), '', 'error');
         }
         $record = @json_decode($content['content'], true);
         if ($record['subscribe'] == '1') {
             $user = array('weid' => $_W['weid'], 'from_user' => $record['openid'], 'nickname' => $record['nickname'], 'gender' => $record['sex'], 'residecity' => $record['city'], 'resideprovince' => $record['province'], 'nationality' => $record['country'], 'avatar' => $record['headimgurl'], 'createtime' => $record['subscribe_time']);
             if (pdo_fetch("SELECT * FROM " . tablename('fans') . " WHERE `from_user` = '{$record['openid']}'")) {
                 pdo_update('fans', $user, array('from_user' => $record['openid']));
             } else {
                 pdo_insert('fans', $user);
             }
         }
         if (empty($user['nickname'])) {
             $user['nickname'] = 'Anonymous_' . substr($o, -4);
         }
         if (empty($user['avatar'])) {
             $user['avatar'] = './source/modules/winestore/template/style/null_header.png';
         }
         return $user;
     }
 }
开发者ID:alextiannus,项目名称:wormwood_wechat,代码行数:45,代码来源:site.php


示例19: getWxAccessToken

 private function getWxAccessToken()
 {
     $rep = pdo_fetch("SELECT `acid`,`access_token` FROM " . tablename("account_wechats") . " WHERE `key`=:key AND `secret`=:secret", array(":key" => $this->appId, ":secret" => $this->appSecret));
     $access_token = iunserializer($rep["access_token"]);
     if (empty($access_token) || $access_token["expire"] <= time()) {
         $appId = $this->appId;
         $secret = $this->appSecret;
         $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={$appId}&secret={$secret}";
         $content = ihttp_get($url);
         if (!empty($content)) {
             $token = @json_decode($content['content'], true);
             if (!empty($token) && is_array($token) && !empty($token['access_token']) && !empty($token['expires_in'])) {
                 $record = array("token" => $token['access_token'], "expire" => TIMESTAMP + $token['expires_in']);
                 pdo_update('account_wechats', array("access_token" => iserializer($record)), array('acid' => $rep['acid']));
                 return $token['access_token'];
             }
         }
     }
     return $access_token;
 }
开发者ID:eduNeusoft,项目名称:weixin,代码行数:20,代码来源:JSSDK.php


示例20: get_user_info

 public function get_user_info($uid, $openid)
 {
     global $_W;
     load()->func('communication');
     if ($uid == 0) {
         $f_log = pdo_fetch("SELECT * FROM " . tablename('mc_mapping_fans') . " WHERE `uniacid` = '{$_W['uniacid']}' AND `openid` = '{$openid}'");
         if (!empty($f_log['uid'])) {
             pdo_update('hx_subscribe_data', array('uid' => $f_log['uid']), array('openid' => $openid));
             $uid = $f_log['uid'];
         } else {
             $default_groupid = pdo_fetchcolumn('SELECT groupid FROM ' . tablename('mc_groups') . ' WHERE uniacid = :uniacid AND isdefault = 1', array(':uniacid' => $_W['uniacid']));
             $data = array('uniacid' => $_W['uniacid'], 'email' => md5($openid) . '@012wz.com', 'salt' => random(8), 'groupid' => $default_groupid, 'createtime' => TIMESTAMP);
             $data['password'] = md5($message['from'] . $data['salt'] . $_W['config']['setting']['authkey']);
             pdo_insert('mc_members', $data);
             $uid = pdo_insertid();
             pdo_update('mc_mapping_fans', array('uid' => $uid), array('openid' => $openid));
             pdo_update('hx_subscribe_data', array('uid' => $uid), array('openid' => $openid));
         }
     }
     $info = mc_fetch($uid);
     if (empty($info['nickname'])) {
         $account = account_fetch($_W['acid']);
         $url = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=" . $account['access_token']['token'] . "&openid=" . $openid . "&lang=zh_CN";
         $re = ihttp_get($url);
         if ($re['code'] == 200) {
             $content = json_decode($re['content'], true);
             if ($content['subscribe'] == 1) {
                 //此人已关注
                 $data = array('nickname' => $content['nickname'], 'gender' => $content['sex'], 'avatar' => $content['headimgurl'], 'resideprovince' => $content['province'], 'residecity' => $content['city'], 'nationality' => $content['country']);
                 pdo_update('mc_members', $data, array('uid' => $_W['member']['uid']));
                 pdo_update('mc_mapping_fans', array('follow' => 1), array('acid' => $_W['acid'], 'openid' => $openid));
             }
         }
         $info = mc_fetch($uid);
         return $info;
     } else {
         return $info;
     }
 }
开发者ID:eduNeusoft,项目名称:weixin,代码行数:39,代码来源:site.php



注:本文中的ihttp_get函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ihttp_post函数代码示例发布时间:2022-05-15
下一篇:
PHP ihttp_email函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap