返回接口

function show($code, $message, $data = [], $httpCode = 200)
{
    $result = [
        'code' => $code,
        'msg' => $message,
        'data' => $data,
    ];
    return json($result, $httpCode);
}

  

posted @ 2019-08-26 11:15  X__cicada  阅读(120)  评论(0编辑  收藏  举报