WebLog() OK v2.1.1

This commit is contained in:
zogodo
2021-12-18 12:32:04 +08:00
parent 205e4913d0
commit 9c82fbae78
7 changed files with 693 additions and 679 deletions

View File

@@ -7,16 +7,16 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<title>zTC1</title>
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="http://119.23.191.79/tc1/images/android-desktop.png">
<link rel="icon" sizes="192x192" href="http://www.yuntong.com/tc1/images/android-desktop.png">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Material Design Lite">
<link rel="apple-touch-icon-precomposed" href="http://119.23.191.79/tc1/images/ios-desktop.png">
<link rel="apple-touch-icon-precomposed" href="http://www.yuntong.com/tc1/images/ios-desktop.png">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="http://119.23.191.79/tc1/images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileImage" content="http://www.yuntong.com/tc1/images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">
<link rel="shortcut icon" href="http://119.23.191.79/tc1/images/favicon.png">
<link rel="shortcut icon" href="http://www.yuntong.com/tc1/images/favicon.png">
<link rel="stylesheet" href="assets/css_pack.css">
</head>
<body>
@@ -46,7 +46,7 @@
</header>
<div class="demo-drawer mdl-layout__drawer mdl-color--blue-grey-900 mdl-color-text--blue-grey-50">
<header class="demo-drawer-header">
<!-- <img src="http://119.23.191.79/tc1/images/user.jpg" class="demo-avatar"> -->
<!-- <img src="http://www.yuntong.com/tc1/images/user.jpg" class="demo-avatar"> -->
<!-- <img width="112px" src="assets/user2.svg" class="demo-avatar"/> -->
<svg width="112pt" height="112pt" viewBox="0 0 112 112" class="demo-avatar"><use xlink:href="#img-user"/></svg>
<div class="demo-avatar-dropdown">
@@ -393,7 +393,7 @@
<div class="mdl-card__supporting-text">
<form action="#">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" id="ota_url" value="http://119.23.191.79/tc1/tc1ota.bin">
<input class="mdl-textfield__input" type="text" id="ota_url" value="http://www.yuntong.icu/ztc1/tc1-v2.1.1-ota.bin">
<label class="mdl-textfield__label" for="ota_url">OTA 地址</label>
</div>
</form>

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include"http_server/web_log.h"
@@ -46,7 +47,7 @@ void WebLog(const char *M, ...)
va_list ap;
va_start(ap, M);
int ret = vsnprintf(buff + TIME_LEN, sizeof(buff) - TIME_LEN, M, ap);
vsnprintf(buff + TIME_LEN, LOG_LEN - TIME_LEN, M, ap);
va_end(ap);
SetLogRecord(&log_record, buff);