stanley-king 6 years ago
parent
commit
59891a777c
1 changed files with 16 additions and 4 deletions
  1. 16 4
      helper/model/goods_summary.php

+ 16 - 4
helper/model/goods_summary.php

@@ -189,11 +189,23 @@ class goods_summary
                 $summary['gap_show'] = true;
                 $summary['gap_show'] = true;
                 $this->goods_info['goods_lowest_price'] = intval($this->goods_info['goods_lowest_price'] * 100 + 0.5) / 100;
                 $this->goods_info['goods_lowest_price'] = intval($this->goods_info['goods_lowest_price'] * 100 + 0.5) / 100;
 
 
-                if(intval($gap * 100 + 0.5) == 0) {
-                    $summary['gap_desc'] = sprintf($config['bonus_gap']['no_gap'],$this->goods_info['goods_lowest_price']);
-                } else {
-                    $summary['gap_desc'] = sprintf($config['bonus_gap']['have_gap'],$this->goods_info['goods_lowest_price'],$gap);
+                if(session_helper::isapp())
+                {
+                    if(intval($gap * 100 + 0.5) == 0) {
+                        $summary['gap_desc'] = sprintf($config['bonus_gap']['no_gap'],$this->goods_info['goods_lowest_price']);
+                    } else {
+                        $summary['gap_desc'] = sprintf($config['bonus_gap']['have_gap'],$this->goods_info['goods_lowest_price'],$gap);
+                    }
                 }
                 }
+                else
+                {
+                    if(intval($gap * 100 + 0.5) == 0) {
+                        $summary['gap_desc'] = sprintf($config['bonus_gapex']['no_gap'],$this->goods_info['goods_lowest_price']);
+                    } else {
+                        $summary['gap_desc'] = sprintf($config['bonus_gapex']['have_gap'],$this->goods_info['goods_lowest_price'],$gap);
+                    }
+                }
+
             }
             }
         }
         }
         else {
         else {