Explorar o código

apilimit改进

lizhen_gitee hai 1 ano
pai
achega
04748b3405
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      application/api/controller/Gift.php
  2. 1 1
      application/api/controller/Hire.php

+ 1 - 1
application/api/controller/Gift.php

@@ -171,7 +171,7 @@ class Gift extends Api
     public function givegift_typing() {
         // 接口防并发
         if (!$this->apiLimit(1, 1000)) {
-            $this->error(__('Operation frequently'));
+            $this->error('休息一下吧');
         }
 
         $user_id = input('user_id');// 赠送对象

+ 1 - 1
application/api/controller/Hire.php

@@ -114,7 +114,7 @@ class Hire extends Api
 
     //领取一个任务
     public function join_hire(){
-        $this->apiLimit();
+        //$this->apiLimit();
 
         $hire_id = input('hire_id',0);