|  | @@ -1197,7 +1197,7 @@ class User extends Api
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          $user_id = $this->auth->id;
 | 
	
		
			
				|  |  |          $is_fate = \app\common\model\User::getIsView($fate_user_id,$user_id);
 | 
	
		
			
				|  |  | -        if(!$is_fate) $this->error('您需要先获取微信号才能添加标签');
 | 
	
		
			
				|  |  | +//        if(!$is_fate) $this->error('您需要先获取微信号才能添加标签');
 | 
	
		
			
				|  |  |          $tag_user_log = \app\common\model\TagUserLog::where(['user_id'=>$user_id,'fate_user_id'=>$fate_user_id,'tag_id'=>$tag_id])->find();
 | 
	
		
			
				|  |  |          if($tag_user_log) {
 | 
	
		
			
				|  |  |              $this->error('您已经为ta添加过此标签了');
 | 
	
	
		
			
				|  | @@ -1210,6 +1210,7 @@ class User extends Api
 | 
	
		
			
				|  |  |              $data['fate_user_id'] = $fate_user_id;
 | 
	
		
			
				|  |  |              $data['tag_id'] = $tag_id;
 | 
	
		
			
				|  |  |              $data['createtime'] = time();
 | 
	
		
			
				|  |  | +            $data['updatetime'] = time();
 | 
	
		
			
				|  |  |              $res1 = \app\common\model\TagUserLog::insert($data);
 | 
	
		
			
				|  |  |              // 修改标签数量
 | 
	
		
			
				|  |  |              $where = [];
 | 
	
	
		
			
				|  | @@ -1225,6 +1226,7 @@ class User extends Api
 | 
	
		
			
				|  |  |                  $data['tag_id'] = $tag_id;
 | 
	
		
			
				|  |  |                  $data['number'] = 1;
 | 
	
		
			
				|  |  |                  $data['createtime'] = time();
 | 
	
		
			
				|  |  | +                $data['updatetime'] = time();
 | 
	
		
			
				|  |  |                  $res2 = \app\common\model\TagUser::insert($data);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 |