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 {
if (data.length > 0) {
const registerScriptId = String(5000 + Number(scriptId));
const registerData = await service.scripts.fetchOneScripts(registerScriptId);
if (registerData.state === 'online') {
const forgotScriptId = String(10000 + Number(scriptId));
const forgotData = await service.scripts.fetchOneScripts(forgotScriptId);
data.map(item => {
if (item.type === 'register') {
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);
}
......
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