摘要: timestamp = time(); $this->capacity = 30; $this->rate = 5; } public function grant() { $now = time(); $this->token = max(0, $this->token - ($now-$this->ti... 阅读全文
posted @ 2019-03-02 21:05 白開水 阅读(411) 评论(0) 推荐(0)