PFinal\Wechat\Service\UserService::batchGet PHP Method

batchGet() public static method

public static batchGet ( array $openIds, $lang = 'zh_CN' )
$openIds array
    public static function batchGet(array $openIds, $lang = 'zh_CN')
    {
        $url = 'https://api.weixin.qq.com/cgi-bin/user/info/batchget?access_token=ACCESS_TOKEN';
        $data = array();
        foreach ($openIds as $openid) {
            $data[] = array('openid' => $openid, 'lang' => $lang);
        }
        $data = array('user_list' => $data);
        $result = parent::request($url, $data);
        return $result['user_info_list'];
    }
UserService