Browse Source

刘功能优化

liuhairui 3 years ago
parent
commit
2f5f5db594
1 changed files with 3 additions and 0 deletions
  1. 3 0
      application/admin/controller/Feeding.php

+ 3 - 0
application/admin/controller/Feeding.php

@@ -137,6 +137,9 @@ class Feeding extends Backend
             if($v['gy_name'] == null){
             if($v['gy_name'] == null){
                 $v['gy_name'] = '';
                 $v['gy_name'] = '';
             }
             }
+            if($v['material'] == null){
+                $v['material'] = '';
+            }
             if($v['percentage']){
             if($v['percentage']){
                 $v['nweight']=round($v['number']*decode($v['percentage'])/100,2);
                 $v['nweight']=round($v['number']*decode($v['percentage'])/100,2);
             }else{
             }else{