$redis = new \Redis\RedisHelp();
$share_concurrent = "getShareComeAction_".$uid;
$lock = $redis->setNx($share_concurrent,time());
if(!$lock){
echo $this->json_encode(self::STATUS,'ok',[],'800302');exit;
}
$redis->expire($share_concurrent,3);
防止重复提交
最新推荐文章于 2022-10-05 22:28:00 发布