小程序在9月27日发布了正式版

This commit is contained in:
qcloud
2025-10-01 08:29:09 +08:00
parent 8d90798647
commit c44e6715a0
15 changed files with 6679 additions and 25074 deletions

View File

@@ -14,7 +14,7 @@
# limitations under the License.
#
from datetime import datetime
import logging
import peewee
from api.db.db_models import DB
@@ -38,7 +38,7 @@ class CommonService:
else:
query_records = cls.model.select()
if reverse is not None:
if not order_by or not hasattr(cls, order_by):
if not order_by or not hasattr(cls.model, order_by): # 20250923 这里之前使用cls 而没有model是错误的
order_by = "create_time"
if reverse is True:
query_records = query_records.order_by(