| 
														
															@@ -49,7 +49,7 @@ class Review extends Base 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         $uid = Dever::input('uid'); 
														 | 
														
														 | 
														
															         $uid = Dever::input('uid'); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         $user = Dever::load('passport/user-one', $uid); 
														 | 
														
														 | 
														
															         $user = Dever::load('passport/user-one', $uid); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        if ($user && $user['pic']) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        if ($user) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             $data = Dever::load('comment/review-one', array('option_info_id' => $this->data['info']['id'], 'option_source_table' => $source_table, 'option_source_id' => $source_id, 'option_uid' => $uid, 'option_content' => $content)); 
														 | 
														
														 | 
														
															             $data = Dever::load('comment/review-one', array('option_info_id' => $this->data['info']['id'], 'option_source_table' => $source_table, 'option_source_id' => $source_id, 'option_uid' => $uid, 'option_content' => $content)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if ($data) { 
														 | 
														
														 | 
														
															             if ($data) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -67,9 +67,8 @@ class Review extends Base 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 $id = Dever::load('comment/review-insert', $insert); 
														 | 
														
														 | 
														
															                 $id = Dever::load('comment/review-insert', $insert); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                # 增加原表数据 以后要添加crontab来定时矫正数据 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                $table = $this->type($source_table); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                Dever::db('content/' . $table)->addReview($source_id); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                $this->count($source_table, $source_id, 'comment/review', 'num_review'); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return $id; 
														 | 
														
														 | 
														
															             return $id; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 |