Browse Source

fix first order correct

stanley-king 4 năm trước cách đây
mục cha
commit
6f23da14cd
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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];
     }