Commit daa42889 authored by 姜登's avatar 姜登

forgot

parent 418706a0
Pipeline #19067 passed with stage
in 15 seconds
...@@ -101,13 +101,16 @@ class ScriptController extends Controller { ...@@ -101,13 +101,16 @@ class ScriptController extends Controller {
if (data.length > 0) { if (data.length > 0) {
const registerScriptId = String(5000 + Number(scriptId)); const registerScriptId = String(5000 + Number(scriptId));
const registerData = await service.scripts.fetchOneScripts(registerScriptId); const registerData = await service.scripts.fetchOneScripts(registerScriptId);
if (registerData.state === 'online') { const forgotScriptId = String(10000 + Number(scriptId));
data.map(item => { const forgotData = await service.scripts.fetchOneScripts(forgotScriptId);
if (item.type === 'register') { data.map(item => {
item.button_pop = item.type; if (registerData.state === 'online' && item.type === 'register') {
} item.button_pop = item.type;
}); }
} if (forgotData.state === 'online' && item.type === 'forgot') {
item.button_pop = item.type;
}
});
} }
ctx.success(data); ctx.success(data);
} }
......
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