Parade Series - Message Interaction

发布时间:2023年12月19日
if (true) {
	Swal.fire("节目发布", "发布完毕", "success");
	event.preventDefault();
}
if (false) {
	Swal.fire("节目发布", "发布失败", "error");
	event.preventDefault();
}

在这里插入图片描述

if (true) {
     for (var i = 0; i < beta.length; i++) {
         NioApp.Toast('<h5>节目发布</h5><p>' + beta[i] + '发布完毕.</p>', 'success');
     }
     event.preventDefault();
}
if (false) {
     NioApp.Toast('<h5>节目发布</h5><p>发布失败.</p>', 'error');
     event.preventDefault();
}
    @staticmethod
    def listAddress():
        alpha = {}
        network_interfaces = psutil.net_if_addrs()
        for interface, addresses in network_interfaces.items():
            for address in addresses:
                if address.family == socket.AF_INET:
                    ip = address.address
                    netType = psutil.net_if_stats()[interface].isup

                    if netType:
                        netType = 'UP'
                    else:
                        netType = 'DOWN'

                    if netType not in alpha:
                        alpha[netType] = []
                    alpha[netType].append([interface, ip])
        return beta
D:\Conda\parading>curl http://127.0.0.1:9000/api/v1.0/system/ip
{
  "code": 200,
  "data": {
    "AddressList": [
      [
        "VMware Network Adapter VMnet1",
        "192.168.71.1"
      ],
      [
        "VMware Network Adapter VMnet8",
        "192.168.48.1"
      ],
      [
        "WLAN",
        "192.168.0.100"
      ],
      [
        "Loopback Pseudo-Interface 1",
        "127.0.0.1"
      ]
    ]
  },
  "msg": "system ip list ok"
}

在这里插入图片描述

文章来源:https://blog.csdn.net/unix2linux/article/details/135009968
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。