示例#1
0
 /**
  * 判断是否关联对方
  * @param $user_id 用户ID
  * @param $to_mobile 对方手机号码
  * @return bool
  */
 public function is_link($user_id, $to_mobile)
 {
     return $this->contact_mapper->get_id_by_tel($user_id, '+86' . $to_mobile) ? TRUE : FALSE;
 }