首先,生成库存的计数量 public function kucun(){有十个库存$count=10;添加到redis list中for($i=0;$i<$count;$i++){Predis::getInstance()-&