Browse Source

no message

lvhao 2 days ago
parent
commit
f840443942
1 changed files with 8 additions and 1 deletions
  1. 8 1
      core/CoreApp/controllers/Whlabelfz1.php

+ 8 - 1
core/CoreApp/controllers/Whlabelfz1.php

@@ -305,7 +305,14 @@ class Whlabelfz1 extends Start_Controller
 				$final_list[$k]['purchase'] = $prc[$v['purchase']];
 				$final_list[$k]['sku'] = $v['sku'];
 				$final_list[$k]['title'] = $v['title'];
-				$final_list[$k]['details'] = $v['details']."<br/>".$v['cpid'];
+				$tmp_deatil = "";
+				if(!empty($v['details'])){
+					$tmp_deatil = $v['details'];
+				}
+				if(!empty($v['cpid'])){
+					$tmp_deatil .= "<br/>".$v['cpid'];
+				}
+				$final_list[$k]['details'] = $tmp_deatil;
 				$final_list[$k]['total_num'] = $v['total_num'];
 				$final_list[$k]['zt'] = "";
 				$final_list[$k]['zd'] = "";