Administrator
2023-12-22 f0248f54f90a12f491245f0ee3ccfbe8f477a76b
utils/middle_api_protocol.py
@@ -3,11 +3,14 @@
"""
import json
from huaxin_client import constant
from utils import socket_util
SERVER_HOST = '43.138.167.68'
# SERVER_HOST = '192.168.3.122'
SERVER_PORT = 10008
if constant.IS_A:
    SERVER_PORT = 10009
def request(data_json):
@@ -31,6 +34,10 @@
    fdata = {"type": "redis", "data": {"ctype": "cmd", "data": data}}
    return fdata
def load_redis_cmds(datas):
    fdata = {"type": "redis", "data": {"ctype": "cmds", "data": datas}}
    return fdata
# ------------------------------Mysql协议----------------------------------
def load_mysql_cmd(data):