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
import time, json
def appGet(self, request): return {"data": RedisAppHandler().get()}