afa 7 mesi fa
parent
commit
a47cdaa326
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      application/api/controller/Pledge.php

+ 2 - 2
application/api/controller/Pledge.php

@@ -120,13 +120,13 @@ class Pledge extends Api
       */
       public function collect(PledgeLogic $pledgeLogic)
       {     
-            //if(cache('collect_'.$this->auth->id)) $this->error(__("正在挖矿中,请稍后再试"));
+            if(cache('collect_'.$this->auth->id)) $this->error(__("正在挖矿中,请稍后再试"));
             Db::startTrans();
             try {
                   // 质抵押订单
                   $res = $pledgeLogic::getPledgeCollect($this->auth->id);
                   //请求限制      
-                 // cache('collect_'.$this->auth->id, time(), 300);
+                  cache('collect_'.$this->auth->id, time(), 300);
                  // 提交事务
                   Db::commit();
             } catch (Exception $e) {