|
@@ -818,6 +818,13 @@ class Index extends Api |
|
@@ -818,6 +818,13 @@ class Index extends Api |
818
|
$qiniu = get_addon_config('qiniu')['cdnurl'];
|
818
|
$qiniu = get_addon_config('qiniu')['cdnurl'];
|
819
|
$user_id = $this->auth->id;
|
819
|
$user_id = $this->auth->id;
|
820
|
$folder_id = $this->request->param('folder_id');
|
820
|
$folder_id = $this->request->param('folder_id');
|
|
|
821
|
+
|
|
|
822
|
+ $folder_info = Db::name('folder')->where('id',$folder_id)->find();
|
|
|
823
|
+ if($folder_info['user_id'] == $user_id){
|
|
|
824
|
+ $data['is_mine'] = 1;
|
|
|
825
|
+ }else{
|
|
|
826
|
+ $data['is_mine'] = 2;
|
|
|
827
|
+ }
|
821
|
$other_user_id = $this->request->param('user_id');
|
828
|
$other_user_id = $this->request->param('user_id');
|
822
|
if(empty($folder_id)){
|
829
|
if(empty($folder_id)){
|
823
|
$this->error('缺少必要参数');
|
830
|
$this->error('缺少必要参数');
|