Commit fcc51840 authored by mercury233's avatar mercury233

fix welcome

parent a0bab0a1
......@@ -3798,7 +3798,7 @@ if settings.modules.http
response.end(addCallback(u.query.callback, "['密码错误', 0]"))
return
try
await util.promisify(setting_change)(settings, 'modules:stop', u.query.welcome)
await util.promisify(setting_change)(settings, 'modules:welcome', u.query.welcome)
response.end(addCallback(u.query.callback, "['welcome ok', '" + u.query.welcome + "']"))
catch err
response.end(addCallback(u.query.callback, "['welcome fail', '" + u.query.welcome + "']"))
......
......@@ -5046,7 +5046,7 @@
return;
}
try {
await util.promisify(setting_change)(settings, 'modules:stop', u.query.welcome);
await util.promisify(setting_change)(settings, 'modules:welcome', u.query.welcome);
response.end(addCallback(u.query.callback, "['welcome ok', '" + u.query.welcome + "']"));
} catch (error1) {
err = error1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment