fix: 启用服务号回调、协议强制签署校验、消息会话数据修复配套接口
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2522,6 +2522,11 @@ class ShangjiaPaifaView(APIView):
|
||||
def post(self, request):
|
||||
logger.info(f"商家派单请求: user_id={request.user.yonghuid}, data={request.data}")
|
||||
|
||||
from peizhi.xieyi_service import check_xieyi_or_response
|
||||
blocked = check_xieyi_or_response(request.user.yonghuid, 'shangjia')
|
||||
if blocked:
|
||||
return blocked
|
||||
|
||||
try:
|
||||
data = request.data
|
||||
|
||||
@@ -4137,6 +4142,11 @@ class QiangdanView(APIView):
|
||||
if not dingdan_id:
|
||||
return Response({'code': 400, 'msg': '订单ID不能为空'}, status=400)
|
||||
|
||||
from peizhi.xieyi_service import check_xieyi_or_response
|
||||
blocked = check_xieyi_or_response(request.user.yonghuid, 'dashou')
|
||||
if blocked:
|
||||
return blocked
|
||||
|
||||
chat_success = False
|
||||
try:
|
||||
with transaction.atomic():
|
||||
|
||||
Reference in New Issue
Block a user