admin/app/common/model/plus/release/ChatRelation.php
@@ -34,6 +34,11 @@ */ public static function getRelationId($user_id,$other_user_id) { // 防止自己与自己创建关系 if ($user_id == $other_user_id) { return 0; } $model = new static; $data = $model->where("user_id",'=',$user_id)->where("other_user_id",'=',$other_user_id)->find(); if(empty($data)){