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", "用户名或口令错误");