1. 数据存在redis做队列,写脚本去轮循
  2. 使用setnx(lock)--del(lock)或if(!file_exist($lock))--ulink($lock)加锁,防止出错,避免死锁