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

授权

@@ -135,7 +135,7 @@ class Project extends Api @@ -135,7 +135,7 @@ class Project extends Api
135 ->select(); 135 ->select();
136 foreach ($data as &$v){ 136 foreach ($data as &$v){
137 $impower = Db::name('impower')->where('project_id',$v['id'])->find(); 137 $impower = Db::name('impower')->where('project_id',$v['id'])->find();
138 - if(!empty($impower)){ 138 + if(empty($impower)){
139 $v['shou'] = 1; 139 $v['shou'] = 1;
140 }else{ 140 }else{
141 $v['shou'] = 2; 141 $v['shou'] = 2;