chanjunkai 5 năm trước cách đây
mục cha
commit
b883a182ff
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      controller/index.py

+ 1 - 1
controller/index.py

@@ -446,7 +446,7 @@ def testRunStream(request):
         print("back0----", back[0].decode())  # 注意需要进行解码操作,默认输出的是字节
         print("back1----", back[1].decode())  # back是一个元祖,可以通过元祖取值的方式获取结果
         return str(back[0].decode()) + str(back[1].decode())
-        return True
+        return JsonResponse({'msg': 'run Stream', 'code': 0})
 
 
 #测试是否正常接口