m0_70156489 1 月之前
父節點
當前提交
33c960beb7
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      application/admin/controller/Deliver.php
  2. 1 0
      application/admin/controller/QcodeAdd.php

+ 1 - 1
application/admin/controller/Deliver.php

@@ -689,7 +689,7 @@ class Deliver extends Backend
                     $large_weight = $large_weight + $value['l_weight'];
                 }
                 $data[$k]['l_num'] = $large_num/10000;
-                $data[$k]['l_weight'] = $large_weight /100;
+                $data[$k]['l_weight'] = round($large_weight / 100, 2);
             }
 
             $good_list['address'] = $userinfo['company_address'];

+ 1 - 0
application/admin/controller/QcodeAdd.php

@@ -145,6 +145,7 @@ class QcodeAdd extends Backend
             $this->error('参数错误');
         }
         $rows = json_decode($rows);
+
         $data = [];
         foreach ($rows as $value){
            foreach ($value as $k=>$v){