Commit 23f97bbe authored by hujun's avatar hujun

客户拨打经纪人手机号1天不重复计入拨打数量

parent d373bd84
......@@ -30,13 +30,16 @@ class VerifyRepetitionService
if (!$this->redis_) {
return true;
}
$key = "";
$key = "";
$time = 60;
switch ($type) {
case 1: //进场
$key = self::MARCH_IN_KEY;
$key = self::MARCH_IN_KEY;
$time = self::TIME_OUT;
break;
case 2:
$key = self::CALL_NUMBER;
$key = self::CALL_NUMBER;
$time = strtotime(date('Y-m-d') . ' 23:59:59') - time();
break;
case 3:
break;
......@@ -46,7 +49,7 @@ class VerifyRepetitionService
if ($this->redis_->get($agent_id . $key . $order_id)) {
return false;
} else {
$this->redis_->set($agent_id . $key . $order_id, 1, self::TIME_OUT);
$this->redis_->set($agent_id . $key . $order_id, 1, $time);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment