Parade Series - Message Interaction

if (true) {
	Swal.fire("节目发布", "发布完毕", "success");
	event.preventDefault();
}
if (false) {
	Swal.fire("节目发布", "发布失败", "error");
	event.preventDefault();
}

Parade Series - Message Interaction_第1张图片

if (true) {
     for (var i = 0; i < beta.length; i++) {
         NioApp.Toast('
节目发布

' + beta[i] + '发布完毕.

'
, 'success'); } event.preventDefault(); } if (false) { NioApp.Toast('
节目发布

发布失败.

'
, '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"
}

Parade Series - Message Interaction_第2张图片

你可能感兴趣的:(服务器,数据库,运维)