lizhen_gitee 1 سال پیش
والد
کامیت
4169dfc7e9
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      application/api/controller/Relation.php

+ 7 - 1
application/api/controller/Relation.php

@@ -155,6 +155,12 @@ class Relation extends Api
 
         Db::name('user_relation')->where('id',$id)->update($data);
 
-        $this->success();
+        if($status == 1){
+            $remark = '您已同意建立关系';
+        }else{
+            $remark = '已拒绝';
+        }
+
+        $this->success($remark);
     }
 }