$fee = 0.01;
$redis->incrby('num',$fee);
//ERR value is not an integer or out of range incrby不能用浮点数,除了*100转换还有办法吗?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
不是很清楚了吗.第二个参数要是int类型的