浏览代码

重量单位修改

zgg 2 月之前
父节点
当前提交
5cbd83d91c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/controller/v1/WasteRecord.php

+ 1 - 1
application/api/controller/v1/WasteRecord.php

@@ -287,7 +287,7 @@ class WasteRecord extends Base
             'user_id' => input('uid/d',0),
             'waste_device_id' => input('wasteDeviceId/d',0),
             'cateid' =>input('cateid/d',0),
-            'weight' => input('weight'),
+            'weight' => (input('weight')) * 1000,
             'create_time' => input('createTime'),
             'status' => 0,
             'is_print' => 0,