コード例 #1
0
 def receive_cmd505(self):
     new_list = []
     if self.interface["data"]["gwID"] == self.decry_data["gwID"]:
         for i in self.decry_data:
             new_list.append(i)
         new_list.sort()
         print(new_list)
         if new_list == self.interface["answer"]:
             resultCode = "0"
             global_value.set_resultCode_value(resultCode)  # 全局变量赋值
             return resultCode
コード例 #2
0
    def receive_cmd506(self):
        new_list = []
        if self.interface["data"]["gwID"] == self.decry_data["gwID"]:
            for i in self.decry_data["data"][0]:
                new_list.append(i)
            new_list.sort()
            for j in self.decry_data["data"]:
                if j["name"] == "理查test123":
                    return_roomID = j["roomID"]
                    global_value.set_return_roomID_value(return_roomID)  # 全局变量赋值

                if j["name"] == "理查基娜test123":
                    return_roomID = j["roomID"]
                    global_value.set_return_roomID_value(return_roomID)  # 全局变量赋值

            if new_list == self.interface["answer"]:
                resultCode = "0"
                global_value.set_resultCode_value(resultCode)  # 全局变量赋值
                return resultCode