|
@@ -6386,7 +6386,12 @@ class NewsService implements NewsServiceInterface
|
|
|
if(empty($project)){
|
|
|
return Result::error("暂无相关项目信息", 0);
|
|
|
}
|
|
|
- $result = Project::where('id',$data['id'])->update(['status' => $data['status']]);
|
|
|
+ if($project->status == 2){
|
|
|
+ $result = Project::where('id', $data['id'])->update(['status' => $data['status'],'refuse_reason' => $data['refuse_reason']]);
|
|
|
+ }else{
|
|
|
+ $result = Project::where('id',$data['id'])->update(['status' => $data['status']]);
|
|
|
+ }
|
|
|
+
|
|
|
if(empty($result)){
|
|
|
return Result::error("审核失败", 0);
|
|
|
}
|