1 2 3 4 5 6 7 8 9 10 11 | <?php // ... other routes $app->get('/update-task/:lid/:tid', 'authenticate', function ($lid, $tid) use ($app) { $task = new Google_Task($app->tasksService->tasks->get($lid, $tid)); $task->setStatus('completed'); $result = $app->tasksService->tasks->update($lid, $task->getId(), $task); $app->redirect('/index'); }); |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |