Ver Fonte

控制面板按钮

郭超 há 4 anos atrás
pai
commit
0b845d69de

+ 4 - 1
site/src/main/java/com/mooctest/crowd/site/mediator/impl/WebMediatorImpl.java

@@ -1561,9 +1561,12 @@ public class WebMediatorImpl implements ViewMediator {
                     // 具有配置项,需要在第三方进行填写报告
                     if(endPoint != null){
                         taskOperationControl.setWriteReport(true);
+                        if(endPoint.getToken() != null &&  !endPoint.getToken().equals("")){
+                            taskOperationControl.setTaskDemonstrate(true);
+                        }
                     }
                 }
-                // 任务已发布
+                // 任务已被接收
                 else{
                     taskOperationControl.setTaskRecommend(true);
                     // 已被接收,分两种:1、为平台填写报告,此时提交人数和接收人数一致,则可以确认结束任务;2、为众测任务,已提交了报告,可以确认结束任务