我认为这也会起作用:
=ARRAYFORMULA(IF(B2:B="";;SUMIF(SEQUENCE(ROWS(C2:I);COLUMNS(C2:I));"<="&SEQUENCE(ROWS(C2:I);1;COLUMNS(C2:I);COLUMNS(C2:I));C2:I)))
,
尝试:
//default.json
"authentication": {
"entity": "user","service": "users","secret": ** ** ** ** ** *,"authStrategies": [
"jwt","local"
],...
},"authentication": {
"entity": "user2","service": "users2",...
// authentication.ts
...
export default function(app: Application) {
const authentication = new AuthenticationService(app,'authentication');
authentication.register('jwt',new JWTStrategy());
authentication.register('local',new LocalStrategy());
app.use('/authentication/users',authentication2);
const authentication2 = new AuthenticationService(app,'authentication2');
authentication2.register('jwt',new JWTStrategy());
authentication2.register('local',new LocalStrategy());
app.use('/authentication/users2',authentication2);
app.configure(expressOauth());
}
...
// user.hooks.ts / user2.hooks.ts
import * as feathersAuthentication from '@feathersjs/authentication';
import * as local from '@feathersjs/authentication-local';
// Don't remove this comment. It's needed to format import lines nicely.
const {
authenticate
} = feathersAuthentication.hooks;
const {
hashPassword,protect
} = local.hooks;
export default {
before: {
all: [],find: [authenticate('jwt')],get: [authenticate('jwt')],create: [hashPassword('password')],update: [hashPassword('password'),authenticate('jwt')],patch: [hashPassword('password'),remove: [authenticate('jwt')]
},after: {
all: [
// Make sure the password field is never sent to the client
// Always must be the last hook
protect('password')
],find: [],get: [],create: [],update: [],patch: [],remove: []
},error: {
all: [],remove: []
}
};
本文链接:https://www.f2er.com/2744137.html