swoft-cloud / swoft

🚀 PHP Microservice Full Coroutine Framework
https://swoft.org
Apache License 2.0
5.58k stars 788 forks source link

hmget 返回结果错误 #248

Closed highwayliu closed 6 years ago

highwayliu commented 6 years ago
Q A
Bug report? yes
Feature request? no
Swoft version 1.0.0
Swoole version 2.1.3
PHP version 7.1.1
Runtime environment Win10/Mac/CentOS 7/Ubuntu/Docker etc.

Details

Describe what you are trying to achieve and what goes wrong.

    $userCache = App::getBean('userRedis');
    return $userCache->hmget(REDIS_KEY_USER_INFO . $userId, $keys == null ? array('mainUin') : $keys);
// paste output here

方法是hMGet
传入参数是array ( 0 => 'u:i:76628', 1 => array ( 0 => 'mainUin', ), ) 返回内容是array(0=> '806864128')没有带key

Provide minimal script to reproduce the issue

// paste code
stelin commented 6 years ago

问题已经了解,我们尽快修复!

huangzhhui commented 6 years ago

https://github.com/swoft-cloud/swoft-component/pull/142