afa il y a 7 mois
Parent
commit
860fa9e52d

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

@@ -120,7 +120,7 @@ class Pledge extends Api
       */
       public function collect(PledgeLogic $pledgeLogic)
       {     
-            //if($pledgeLogic::getCheckRequestApi('collect', $this->auth->id, 300) == false) $this->error(__("收取太pio啦,请稍后再试"));
+            if(cache('collect_'.$this->auth->id)) $this->error(__("正在挖矿中,请稍后再试"));
 
             Db::startTrans();
             try {

+ 1 - 0
application/api/lang/en.php

@@ -50,5 +50,6 @@ return [
     '质押商品数量与订单数量不匹配'                                                 => 'The pledge product quantity does not match the order quantity',   
     '质抵活动不存在'                                                              => 'The pledge activity does not exist',  
     '质抵活动已结束'                                                              => 'The pledge activity has ended',
+    '正在挖矿中,请稍后再试'                                                       => 'Mining is in progress, please try again later', 
 
 ]; 

+ 1 - 0
application/api/lang/zh-cn.php

@@ -141,5 +141,6 @@ return [
     '质押商品数量与订单数量不匹配'                                                 => '质押商品数量与订单数量不匹配',   
     '质抵活动不存在'                                                              => '质抵活动不存在',  
     '质抵活动已结束'                                                              => '质抵活动已结束',
+    '正在挖矿中,请稍后再试'                                                        => '正在挖矿中,请稍后再试',
 
 ];