INNER CODE UNIT · Python

arg_is_notnull

ibaihuo/chanvis · api/chanapi.py:28

def arg_is_notnull(*args):
    """
    参数不能为空时,返回结果
    """
    arg_names = ', '.join(args)

    data = {"code": "-9",
            "msg": f"[{arg_names}] 参数为空"
            }

    return jsonify(data)


@NaturalChan.route("/api/config")
def config():
    """
    配置信息
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…