stanley-king 4 년 전
부모
커밋
a71af99588
2개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 1
      data/config/prod/refill.ini.php
  2. 4 4
      helper/refill/RefillFactory.php

+ 2 - 1
data/config/prod/refill.ini.php

@@ -17,7 +17,8 @@ $suhc_oil = ['name' => 'suhc', 'store_id' => 7, 'card_type' => ['sinopec'],
     'amount' => [100 => ['goods_id' => 6290, 'price' => 96.8],
         200 => ['goods_id' => 6291, 'price' => 193.6],
         500 => ['goods_id' => 6292, 'price' => 484],
-        1000 => ['goods_id' => 6293, 'price' => 968]],
+//        1000 => ['goods_id' => 6293, 'price' => 968]
+    ],
     'period' => ['start' => '8:30', 'end' => '22:20'], 'refill_type' => 'api'];
 
 //速汇充天猫加油通道

+ 4 - 4
helper/refill/RefillFactory.php

@@ -438,10 +438,10 @@ class RefillFactory
                 return false;
             }
 
-//            $times = intval($refill['commit_times']);
-//            if ($times > 5) {
-//                return false;
-//            }
+            $times = intval($refill['commit_times']);
+            if ($times > 15) {
+                return false;
+            }
 
             $period = time() - $refill['order_time'];
             if ($period >= 15 * 60) {