删除无用文件

This commit is contained in:
2019-12-31 16:33:38 +08:00
parent d051250959
commit 9d246dfcba
14 changed files with 1 additions and 15680 deletions
-1
View File
File diff suppressed because one or more lines are too long
BIN
View File
Binary file not shown.
-21
View File
@@ -1,21 +0,0 @@
syntax = "proto2";
import "XiguaCommon.proto";
message XiguaLive {
message Data {
message Message {
required CommonInfo commonInfo = 1;
optional string content = 3;
}
// WebcastChatMessage 聊天
// WebcastGiftMessage 礼物
required string method = 1;
required Message message = 2;
}
repeated Data data = 1;
required string cursor = 2;
optional int32 fetch_interval = 3;
optional int32 now = 4;
required string internal_ext = 5;
}
-35
View File
@@ -1,35 +0,0 @@
syntax = "proto2";
import "XiguaUser.proto";
import "XiguaGift.proto";
// 样式
message Style {
optional string color = 1;
optional int32 fontWeight = 4;
}
// 参数
message Params {
// 1 字符串
// 11 用户
// 12 礼物
required int32 type = 1;
optional Style style = 2;
optional string string = 11;
optional User user = 21;
optional Gift gift = 22;
}
// 自定义显示信息
message DisplayText {
// 参数
required string method = 1;
required string format = 2;
optional Style bgStyle = 3;
optional Params params = 4;
}
// 通用定义
message CommonInfo {
optional string method = 1;
optional int32 msg_id = 2;
optional int32 room_id = 3;
optional int32 create_time = 4;
optional DisplayText displayText = 8;
}
-10
View File
@@ -1,10 +0,0 @@
syntax = "proto2";
// 礼物
message Gift {
message Detail {
required string gift_id = 1;
required string gift_name = 2;
}
required int32 id = 1;
required Detail gift = 2;
}
-68
View File
@@ -1,68 +0,0 @@
syntax = "proto2";
// 用户信息
message User {
// 头像
message Avatar {
required string url = 1;
optional string id = 2;
}
// 头衔
message Badge {
message FanClubText {
required string text = 1;
optional string color = 2;
required int32 level = 3;
}
repeated string url = 1;
optional string localUrl = 2;
optional int32 height = 3;
optional int32 width = 4;
// 3 房管
// 6 贵族
// 7 粉丝团
optional int32 type = 6;
optional string clickTo = 7;
optional FanClubText fanClubText = 8;
}
// 粉丝和粉
message Follow {
optional int32 following = 1 [default = 0];
optional int32 follower = 2 [default = 0];
}
// 花钱等级
message PayGrade {
required int32 current = 1;
required int32 level = 6;
optional int32 currentLevelNeed = 10;
optional int32 nextLevelNeed = 11;
optional string content = 13;
required Badge badge = 19;
optional int32 toNextLevelNeed = 21;
}
// 荣誉等级
message HonorLevel {
required Badge badge = 19;
}
// 贵族
message Noble {
message NobleBoarder {
repeated string urlList = 1;
required string uri = 2;
optional int32 height = 3;
optional int32 width = 4;
}
required string content = 4;
optional NobleBoarder boarder = 8;
}
required int32 id = 1;
required string nickname = 3;
required int32 gender = 4;
// 这个顺序可能有点迷,不是很清楚
required Avatar avatarThumb = 9;
optional Avatar avatarMedium = 10;
optional Avatar avatarLarge = 11;
repeated Badge badge = 21;
optional Follow follow = 22;
required PayGrade payGrade = 23;
required int32 totalPaid = 34;
}
-1104
View File
File diff suppressed because it is too large Load Diff
-4406
View File
File diff suppressed because it is too large Load Diff
-1434
View File
File diff suppressed because it is too large Load Diff
-2576
View File
File diff suppressed because it is too large Load Diff
-6007
View File
File diff suppressed because it is too large Load Diff
-8
View File
@@ -1,8 +0,0 @@
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URL"] = "sqlite://data.db"
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
app.config['SQLALCHEMY_COMMIT_ON_TEARDOWN'] = True
db = SQLAlchemy(app)
-10
View File
@@ -1,10 +0,0 @@
from datetime import datetime
from sqlalchemy import func
from .DataBase import db
class Files(db.Model):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
filename = db.Column(db.String(50))
is_upload = db.Column(db.Integer(1), server_default=0, default=0)
create_time = db.Column(db.TIMESTAMP, server_default=func.now(), default=datetime.now())
+1
View File
@@ -112,6 +112,7 @@ class XiGuaLiveApi:
:return: :return:
""" """
if self.roomLiver is None: if self.roomLiver is None:
self.isLive = False
return False return False
_formatData = {"COMMON": COMMON_GET_PARAM, "TIMESTAMP": time.time() * 1000, "userId": self.roomLiver.ID} _formatData = {"COMMON": COMMON_GET_PARAM, "TIMESTAMP": time.time() * 1000, "userId": self.roomLiver.ID}
_url = USER_INFO_API.format_map(_formatData).format_map(_formatData) _url = USER_INFO_API.format_map(_formatData).format_map(_formatData)