Your Name 2 years ago
parent
commit
a48820c7e2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      service/agent/lib/Member.php

+ 1 - 2
service/agent/lib/Member.php

@@ -703,7 +703,7 @@ class Member
         $temp = array();
         $sell = 0;
         $max = count($info);
-        if ($max > 1) {
+        if ($max > 0) {
             foreach ($info as $key => $val) {
                 $temp[] = $val['total']; // 用一个空数组来承接字段
                 $sell += $val['total'];
@@ -720,7 +720,6 @@ class Member
             }
             $total = sprintf ('%01.2f',$total);
         }
-        
         return $total;
     }
     #新增正常业绩