作者 郭盛
1 个管道 的构建 通过 耗费 1 秒

添加字段

@@ -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('缺少必要参数');
@@ -9081,7 +9081,7 @@ @@ -9081,7 +9081,7 @@
9081 9081
9082 <div class="row mt0 footer"> 9082 <div class="row mt0 footer">
9083 <div class="col-md-6" align="left"> 9083 <div class="col-md-6" align="left">
9084 - Generated on 2020-08-17 09:02:14 </div> 9084 + Generated on 2020-08-17 09:08:01 </div>
9085 <div class="col-md-6" align="right"> 9085 <div class="col-md-6" align="right">
9086 <a href="./" target="_blank">彩云盘</a> 9086 <a href="./" target="_blank">彩云盘</a>
9087 </div> 9087 </div>