日志规范



    /**
     * 获取老师最后离开教室时间
     * @param $courseId
     */
    public function getTeacherLastEndTime($courseId)
    {
        
        $rst = $response->getBody()->getContents();
        $replayRes = json_decode($rst, true);

        Log::info("get teacher last end time | return info " . $rst . " | course id is {$courseId}");

        if (! $replayRes || ! isset($replayRes['error_code']) || $replayRes['error_code'] != Code::SUCCESS) {
            Log::error('getTeacherLastEndTime Fail ', ['trace_id']);
        }

        return $replayRes;
    }

你可能感兴趣的:(javascript)