Commit 976d4402 authored by clone's avatar clone

bug

parent 1fdd53d3
...@@ -49,7 +49,7 @@ class ClientService ...@@ -49,7 +49,7 @@ class ClientService
public function saveCallNumByUserId($user_id) public function saveCallNumByUserId($user_id)
{ {
$call_num = $this->redis->get(self::SAVE_CALL_NUM . $user_id); $call_num = $this->redis->get(self::SAVE_CALL_NUM . $user_id);
if ($call_num > 0) { if ($call_num) {
$this->redis->set(self::SAVE_CALL_NUM . $user_id, $call_num + 1); $this->redis->set(self::SAVE_CALL_NUM . $user_id, $call_num + 1);
} else { } else {
$this->redis->set(self::SAVE_CALL_NUM . $user_id, 1, $this->day * 3600); $this->redis->set(self::SAVE_CALL_NUM . $user_id, 1, $this->day * 3600);
......
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