镇管理官司任务详情接口,任务4提交接口
This commit is contained in:
parent
e2309b5a0f
commit
e3d778163a
@ -298,7 +298,7 @@ class TaskController extends BaseApiController
|
|||||||
/**
|
/**
|
||||||
* 其他任务 -提交
|
* 其他任务 -提交
|
||||||
*/
|
*/
|
||||||
public function cimmit_other_task()
|
public function commit_other_task()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$parmas = $this->request->param(); //id note annex vedio_annex
|
$parmas = $this->request->param(); //id note annex vedio_annex
|
||||||
@ -345,4 +345,33 @@ class TaskController extends BaseApiController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 镇管理公司任务详情
|
||||||
|
*/
|
||||||
|
public function service_task_detail()
|
||||||
|
{
|
||||||
|
$param = $this->request->param();
|
||||||
|
$task = TaskLogic::detail($param);
|
||||||
|
return $this->success('成功', $task);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 镇管理公司任务-督促小组服务团队学习任务 -提交
|
||||||
|
*/
|
||||||
|
public function commit_town_task_type4()
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
$parmas = $this->request->param(); //id study_photo sign_in_table study_content
|
||||||
|
$extend = ['town_task_type_4' => ['study_photo'=>$parmas['study_photo'], 'sign_in_table'=>$parmas['sign_in_table'], 'study_content'=> $parmas['study_content']]];
|
||||||
|
if (count($parmas['study_photo']) >= 5 && !empty($parmas['sign_in_table']) && strlen($parmas['study_content'])>=50) {
|
||||||
|
Task::where('id', $parmas['id'])->save(['extend' => json_encode($extend), 'status' => 3]);
|
||||||
|
} else {
|
||||||
|
Task::where('id', $parmas['id'])->save(['extend' => json_encode($extend)]);
|
||||||
|
}
|
||||||
|
return $this->success('成功', []);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
return $this->fail($e->getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user