Sfoglia il codice sorgente

fix first order correct

stanley-king 4 anni fa
parent
commit
6f23da14cd
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      helper/calc_helper.php

+ 1 - 2
helper/calc_helper.php

@@ -84,10 +84,9 @@ class CalcPrice implements ICalc
 
     private function first_order($goods_id)
     {
-        if($this->mOrderCount == 0) return false;
+        if($this->mOrderCount > 0) return false;
 
         $share_policy = $this->share_policy($goods_id);
-
         return empty($share_policy) ? false : $share_policy[0];
     }