Commit 17f2ae10 authored by hujun's avatar hujun

11

parent 7b69f820
...@@ -50,7 +50,7 @@ class ClientService ...@@ -50,7 +50,7 @@ class ClientService
{ {
$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) { if ($call_num) {
$this->redis->set(self::SAVE_CALL_NUM . $user_id, $call_num + 1); $this->redis->incr(self::SAVE_CALL_NUM . $user_id);
} else { } else {
$this->redis->set(self::SAVE_CALL_NUM . $user_id, 1, $this->day * 3600 * 24); $this->redis->set(self::SAVE_CALL_NUM . $user_id, 1, $this->day * 3600 * 24);
} }
......
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