微擎使用函數獲取用戶微信信息


 $_accounts = $accounts = uni_accounts();
        
        load()->model('mc');
        if (empty($accounts) || !is_array($accounts) || count($accounts) == 0) {
            message('請指定公眾號');
        }
        if (!isset($_GPC['acid'])) {
            $account = array_shift($_accounts);
            if ($account !== false) {
                $acid = intval($account['acid']);
            }
        } else {
            $acid = intval($_GPC['acid']);
            if (!empty($acid) && !empty($accounts[$acid])) {
                $account = $accounts[$acid];
            }
        }
        reset($accounts);
        //上面賦值進來的

        //$aa=array();
        if ($row['openid']) {//有openid就查詢用戶信息
            //foreach ($list as $index => $row) {
            $row['user']= mc_fansinfo($row['openid'], $acid, $_W['uniacid']);
        
            # code...
        }

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM