Browse Source

线上测试梦体提出的问题

lvhao 6 months ago
parent
commit
223f46c68a
1 changed files with 6 additions and 1 deletions
  1. 6 1
      core/CoreApp/controllers/Customer.php

+ 6 - 1
core/CoreApp/controllers/Customer.php

@@ -2122,7 +2122,12 @@ class Customer extends Start_Controller {
 					{
 						$info_list[$key]['country'] = '';
 					}
-					$info_list[$key]['numphone'] = sprintf("%01.2f",$value['money']/$value['num']);
+					if($value['num'] > 0){
+						$info_list[$key]['numphone'] = sprintf("%01.2f",$value['money']/$value['num']);
+					}else{
+						$info_list[$key]['numphone'] = "<span style='color:red'>num异常".$value['num']."</span>";
+					}
+					
 					if(isset($value['email']) && $usp['excelpass'] == '1')
 					{
 						$emailpass = $this->setting->get_excelpass($value['email']);