From 86491da7cf93e1243cc0e2998a43960dd9f47a23 Mon Sep 17 00:00:00 2001 From: wang_chengh <13383929+wang_chengh@user.noreply.gitee.com> Date: Wed, 20 Sep 2023 15:36:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0code:=200=E7=9A=84=E5=9B=9E?= =?UTF-8?q?=E6=8A=A5=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/cgi-bin/c_mysql_user_pwd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/www/cgi-bin/c_mysql_user_pwd.c b/www/cgi-bin/c_mysql_user_pwd.c index be69d39..d4d9f68 100644 --- a/www/cgi-bin/c_mysql_user_pwd.c +++ b/www/cgi-bin/c_mysql_user_pwd.c @@ -79,6 +79,7 @@ int main() { if ((row = mysql_fetch_row(res))) { cJSON_AddNumberToObject(result_json, "code", 0); + cJSON_AddStringToObject(result_json, "nickname", "admin"); } else { cJSON_AddNumberToObject(result_json, "code", 1); cJSON_AddStringToObject(result_json, "msg", "用户名或口令错误");