fix: AI客服+合同审查回复格式化;review.js修复;积分充值流程完善

This commit is contained in:
2026-10-12 17:13:32 +08:00
parent edd53d5d2b
commit 904fd1f8f1
1732 changed files with 340840 additions and 1210 deletions
@@ -0,0 +1,63 @@
{
"bsonType": "object",
"required": [],
"properties": {
"_id": {
"description": "记录ID,系统自动生成",
"bsonType": "string"
},
"user_id": {
"bsonType": "string",
"title": "用户ID",
"description": "关联 uni-id-users._id",
"foreignKey": "uni-id-users._id"
},
"type": {
"bsonType": "string",
"title": "变动类型",
"description": "earn=获得 spend=消耗",
"enum": [
{ "text": "获得", "value": "earn" },
{ "text": "消耗", "value": "spend" }
]
},
"amount": {
"bsonType": "number",
"title": "变动数量",
"description": "正数为获得,负数为消耗"
},
"balance_after": {
"bsonType": "number",
"title": "变动后余额",
"description": "本次变动后的积分余额"
},
"reason": {
"bsonType": "string",
"title": "变动原因",
"description": "如:新用户赠送、积分充值、合同审查消耗",
"trim": "both"
},
"biz_type": {
"bsonType": "string",
"title": "业务类型",
"description": "关联的业务类型",
"enum": [
{ "text": "赠送", "value": "gift" },
{ "text": "充值", "value": "recharge" },
{ "text": "合同审查", "value": "contract_review" },
{ "text": "签到", "value": "checkin" },
{ "text": "其他", "value": "other" }
]
},
"biz_id": {
"bsonType": "string",
"title": "业务ID",
"description": "关联的业务记录ID(如订单ID)"
},
"_add_time": {
"bsonType": "date",
"title": "创建时间",
"description": "记录创建时间,系统自动填充"
}
}
}
@@ -0,0 +1,40 @@
{
"bsonType": "object",
"required": [],
"properties": {
"_id": {
"description": "用户ID(与 uni-id-users._id 对应)",
"bsonType": "string"
},
"balance": {
"bsonType": "number",
"title": "积分余额",
"description": "当前可用积分",
"defaultValue": 0,
"minimum": 0
},
"total_earned": {
"bsonType": "number",
"title": "累计获得",
"description": "累计获得的积分总数",
"defaultValue": 0
},
"total_spent": {
"bsonType": "number",
"title": "累计消耗",
"description": "累计消耗的积分总数",
"defaultValue": 0
},
"gift": {
"bsonType": "number",
"title": "赠送积分",
"description": "新用户赠送的积分数量",
"defaultValue": 500
},
"update_time": {
"bsonType": "date",
"title": "更新时间",
"description": "最后更新时间"
}
}
}