option('uid'); $examId = $this->option('exam_id'); $begin = $this->option('begin'); $end = $this->option('end'); $this->info(sprintf('uid: %s, examId: %s, begin: %s, end: %s', $uid, $examId, $begin, $end)); $result = $examRep->assignToUser($uid, $examId, $begin, $end); $log = sprintf('[%s], %s, result: %s', nexus()->getRequestId(), __METHOD__, var_export($result, true)); $this->info($log); do_log($log); return 0; } }