Commit da6af941 authored by clone's avatar clone

bug

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