Commit ·
6c69907
1
Parent(s): 70024a5
update plugins bug
Browse files- ndcc/server/lib/mongodb.js +1 -1
- src/pages/admin/ZhIS8NlvqEJ2bubJ/index.js +1 -1
- src/pages/api/plugins/Zi34RUP5T5YuGLrJ.js +2 -2
- src/pages/api/plugins/Zi5B49CFcEZacrJV.js +0 -9
- src/pages/api/routes/Zh5xOZahKt0v1G_F.js +1 -1
- src/pages/api/routes/ZhIWjVHdVLru7eFn.js +2 -2
- src/pages/api/routes/ZhNE2aqY2Pr2uvqA.js +1 -1
- src/pages/web/Zi5iE_t6r4hRvBtP/index.js +1 -1
ndcc/server/lib/mongodb.js
CHANGED
|
@@ -847,7 +847,7 @@ export default (props)=>{
|
|
| 847 |
//只能修改名称不能修改sign
|
| 848 |
if(action === 'updateOne'){
|
| 849 |
const {sign} = await db.findOne(query,{projection:{sign:1}});
|
| 850 |
-
if(options.data["$set"].sign !== sign){
|
| 851 |
const table = server.table();
|
| 852 |
const thisPlugins = table.find(e=>e.settings.plugins[sign] && e.settings.plugins[sign].enabled === true);
|
| 853 |
if(!_.isEmpty(thisPlugins)){
|
|
|
|
| 847 |
//只能修改名称不能修改sign
|
| 848 |
if(action === 'updateOne'){
|
| 849 |
const {sign} = await db.findOne(query,{projection:{sign:1}});
|
| 850 |
+
if(options.data["$set"].sign && options.data["$set"].sign !== sign){
|
| 851 |
const table = server.table();
|
| 852 |
const thisPlugins = table.find(e=>e.settings.plugins[sign] && e.settings.plugins[sign].enabled === true);
|
| 853 |
if(!_.isEmpty(thisPlugins)){
|
src/pages/admin/ZhIS8NlvqEJ2bubJ/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import Container from './style';
|
|
| 3 |
export default function App() {
|
| 4 |
return (
|
| 5 |
<Container>
|
| 6 |
-
首页待编辑
|
| 7 |
</Container>
|
| 8 |
)
|
| 9 |
}
|
|
|
|
| 3 |
export default function App() {
|
| 4 |
return (
|
| 5 |
<Container>
|
| 6 |
+
首页待编辑1test
|
| 7 |
</Container>
|
| 8 |
)
|
| 9 |
}
|
src/pages/api/plugins/Zi34RUP5T5YuGLrJ.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
|
| 2 |
|
| 3 |
export default async (req)=>{
|
| 4 |
-
const {send,reply,error,isGet,db,
|
| 5 |
try{
|
| 6 |
-
send('
|
| 7 |
}catch (e){
|
| 8 |
error(e)
|
| 9 |
}
|
|
|
|
| 1 |
|
| 2 |
|
| 3 |
export default async (req)=>{
|
| 4 |
+
const {send,reply,error,isGet,db,cookie,event,socket} = await req.ctx();
|
| 5 |
try{
|
| 6 |
+
send('testPlugin12s')
|
| 7 |
}catch (e){
|
| 8 |
error(e)
|
| 9 |
}
|
src/pages/api/plugins/Zi5B49CFcEZacrJV.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
export default async (req)=>{
|
| 3 |
-
const {send,error,next} = await req.ctx();
|
| 4 |
-
try{
|
| 5 |
-
next('Hello test3!')
|
| 6 |
-
}catch (e){
|
| 7 |
-
error(e)
|
| 8 |
-
}
|
| 9 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/pages/api/routes/Zh5xOZahKt0v1G_F.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
|
| 2 |
export default async (req)=>{
|
| 3 |
-
const {send,reply,error,isGet,db,user,
|
| 4 |
try{
|
| 5 |
send(
|
| 6 |
plugins
|
|
|
|
| 1 |
|
| 2 |
export default async (req)=>{
|
| 3 |
+
const {send,reply,error,isGet,db,user,plugins} = await req.ctx();
|
| 4 |
try{
|
| 5 |
send(
|
| 6 |
plugins
|
src/pages/api/routes/ZhIWjVHdVLru7eFn.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
|
| 2 |
|
| 3 |
export default async (req)=>{
|
| 4 |
-
const {send,reply,error,isGet,db,user,
|
| 5 |
try{
|
| 6 |
-
socket.emit('testSocket','66661161d
|
| 7 |
send(user)
|
| 8 |
}catch (e){
|
| 9 |
error(e)
|
|
|
|
| 1 |
|
| 2 |
|
| 3 |
export default async (req)=>{
|
| 4 |
+
const {send,reply,error,isGet,db,user,cookie,event,socket} = await req.ctx();
|
| 5 |
try{
|
| 6 |
+
socket.emit('testSocket','66661161d fg11ddd111112s3-11s--')
|
| 7 |
send(user)
|
| 8 |
}catch (e){
|
| 9 |
error(e)
|
src/pages/api/routes/ZhNE2aqY2Pr2uvqA.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
|
| 2 |
export default async (req)=>{
|
| 3 |
-
const {send,reply,error,isGet,db,user,
|
| 4 |
try{
|
| 5 |
send(await pm2.getList());
|
| 6 |
}catch (e){
|
|
|
|
| 1 |
|
| 2 |
export default async (req)=>{
|
| 3 |
+
const {send,reply,error,isGet,db,user,cookie,event,pm2} = await req.ctx();
|
| 4 |
try{
|
| 5 |
send(await pm2.getList());
|
| 6 |
}catch (e){
|
src/pages/web/Zi5iE_t6r4hRvBtP/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export default (props) =>{
|
|
| 5 |
return (
|
| 6 |
<Container c>
|
| 7 |
<div className={style.root}>
|
| 8 |
-
<h1>Hello test1!</h1>
|
| 9 |
</div>
|
| 10 |
</Container>
|
| 11 |
)
|
|
|
|
| 5 |
return (
|
| 6 |
<Container c>
|
| 7 |
<div className={style.root}>
|
| 8 |
+
<h1>Hello test1!112dd22dd221</h1>
|
| 9 |
</div>
|
| 10 |
</Container>
|
| 11 |
)
|