我有一个 Meteor 方法generateUserHash
,它只是将一个 ID 传递给Intercom以取回用户哈希:
export const generateUserHash = new ValidatedMethod({
name: 'generateUserHash',
validate() {},
run() {
if (!Meteor.isServer) return;
if (!this.userId) throw new Meteor.Error('no-user-id');
return SecureMode.userHash({
identifier: this.userId,
secretKey: Meteor.settings.intercom.secretKey,
});
},
});
根据卡迪拉的说法:
我不明白为什么当这些订阅不在方法中时,它为什么要等待所有这些订阅。