Commit f4a30bfe authored by 姜登's avatar 姜登

register添加

parent 0f166320
Pipeline #17508 failed with stage
in 1 second
...@@ -98,6 +98,17 @@ class ScriptController extends Controller { ...@@ -98,6 +98,17 @@ class ScriptController extends Controller {
const { ctx, service } = this; const { ctx, service } = this;
const { scriptId } = ctx.params; const { scriptId } = ctx.params;
const data = await service.scripts.fetchQueryButton(scriptId); const data = await service.scripts.fetchQueryButton(scriptId);
if (data.length > 0) {
const registerScriptId = String(5000 + Number(scriptId));
const registerData = await service.scripts.fetchOneScripts(registerScriptId);
if (registerData.state === 'online') {
data.map(item => {
if (item.type === 'register') {
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