示例#1
0
文件: api.py 项目: cp1059/server
    def appUpdate(self, request):

        version = request.data_format.get("version", None)
        url = request.data_format.get("url", None)
        note = request.data_format.get("note", None)

        if not version:
            raise PubErrorCustom("版本号不能为空")

        if not url:
            raise PubErrorCustom("下载地址不能为空!")

        if not note:
            raise PubErrorCustom("更新内容不能为空!")

        RedisAppHandler().set(data={
            "version": version,
            "url": url,
            "note": note
        })

        return None
示例#2
0
import time, json
示例#3
0
文件: api.py 项目: cp1059/server
    def appGet(self, request):

        return {"data": RedisAppHandler().get()}