Commit da6af941 authored by clone's avatar clone

bug

parent eec053de
...@@ -27,7 +27,7 @@ class ClientService ...@@ -27,7 +27,7 @@ class ClientService
{ {
$day = 1; $day = 1;
$num = 5; $num = 5;
if ($this->redis && $this->redis->get("s_agent_call_day") > 0 && $this->redis->get("s_agent_call_number") > 0) { if ($this->redis) {
$day = $this->redis->get("s_agent_call_day"); $day = $this->redis->get("s_agent_call_day");
$num = $this->redis->get("s_agent_call_number"); $num = $this->redis->get("s_agent_call_number");
} }
...@@ -38,7 +38,7 @@ class ClientService ...@@ -38,7 +38,7 @@ class ClientService
$params["user_id"] = $user_id; $params["user_id"] = $user_id;
$total = $this->uPhoneFollowUpModel->getCount( $params); $total = $this->uPhoneFollowUpModel->getCount( $params);
if ($total > $num) { if ($total >= $num) {
return false; return false;
} else { } else {
return true; 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