| 
					
				 | 
			
			
				@@ -413,7 +413,7 @@ class WasteRecord extends Base { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return $id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public function packInfo($serialNum,$orgId){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public function packInfo($serialNum,$orgId,$platform=''){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $map[] = ['sn','=',$serialNum]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $map[] = ['org_id','=',$orgId]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $map[] = ['del','=',0]; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -479,7 +479,13 @@ class WasteRecord extends Base { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $record[$k]['cate_name'] =Db::name('waste_type') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ->where('id',$v['cateid'])->value('title'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //            $record[$k]['weight'] = $v['weight']?round($v['weight']/1000,2):0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            $record[$k]['weight'] = $v['weight']?$v['weight']:0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if($platform == 'iOS'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $record[$k]['weight'] = $v['weight']?$v['weight']:0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $record[$k]['weight'] = $v['weight']?round($v['weight']/1000,2):0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $record[$k]['kg'] = $v['weight']?round($v['weight']/1000,2):0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $cate = Db::name('waste_type')->where('id',$v['cateid'])->find(); 
			 |