关于javascript:日志规范

39次阅读

共计 395 个字符,预计需要花费 1 分钟才能阅读完成。



    /**
     * 获取老师最初来到教室工夫
     * @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;
    }

正文完
 0