watcher
This commit is contained in:
parent
1cb49b5863
commit
013f2507fc
|
|
@ -1,10 +1,11 @@
|
||||||
import { aspectDict } from "./aspects";
|
import { aspectDict } from "./aspects";
|
||||||
import triggers from "./triggers";
|
import triggers from "./triggers";
|
||||||
import checkers from './checkers';
|
import checkers from './checkers';
|
||||||
|
import watchers from './watchers';
|
||||||
import data from "./data";
|
import data from "./data";
|
||||||
import { initialize as initializeFeatures } from './features';
|
import { initialize as initializeFeatures } from './features';
|
||||||
import { routers as exceptionRouters } from './exceptionRouters';
|
import { routers as exceptionRouters } from './exceptionRouters';
|
||||||
export { checkers, triggers, data, aspectDict, initializeFeatures, exceptionRouters, };
|
export { checkers, triggers, watchers, data, aspectDict, initializeFeatures, exceptionRouters, };
|
||||||
export * from './RuntimeContext';
|
export * from './RuntimeContext';
|
||||||
export * from './types/Exceptions';
|
export * from './types/Exceptions';
|
||||||
export { composeFileUrl, decomposeFileUrl } from './utils/extraFile';
|
export { composeFileUrl, decomposeFileUrl } from './utils/extraFile';
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.decomposeFileUrl = exports.composeFileUrl = exports.exceptionRouters = exports.initializeFeatures = exports.aspectDict = exports.data = exports.triggers = exports.checkers = void 0;
|
exports.decomposeFileUrl = exports.composeFileUrl = exports.exceptionRouters = exports.initializeFeatures = exports.aspectDict = exports.data = exports.watchers = exports.triggers = exports.checkers = void 0;
|
||||||
// import './typings/polyfill';
|
// import './typings/polyfill';
|
||||||
const aspects_1 = require("./aspects");
|
const aspects_1 = require("./aspects");
|
||||||
Object.defineProperty(exports, "aspectDict", { enumerable: true, get: function () { return aspects_1.aspectDict; } });
|
Object.defineProperty(exports, "aspectDict", { enumerable: true, get: function () { return aspects_1.aspectDict; } });
|
||||||
|
|
@ -25,6 +25,8 @@ const triggers_1 = __importDefault(require("./triggers"));
|
||||||
exports.triggers = triggers_1.default;
|
exports.triggers = triggers_1.default;
|
||||||
const checkers_1 = __importDefault(require("./checkers"));
|
const checkers_1 = __importDefault(require("./checkers"));
|
||||||
exports.checkers = checkers_1.default;
|
exports.checkers = checkers_1.default;
|
||||||
|
const watchers_1 = __importDefault(require("./watchers"));
|
||||||
|
exports.watchers = watchers_1.default;
|
||||||
const data_1 = __importDefault(require("./data"));
|
const data_1 = __importDefault(require("./data"));
|
||||||
exports.data = data_1.default;
|
exports.data = data_1.default;
|
||||||
const features_1 = require("./features");
|
const features_1 = require("./features");
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ const triggers = [
|
||||||
const { appId, appSecret } = config2;
|
const { appId, appSecret } = config2;
|
||||||
for (const code of result) {
|
for (const code of result) {
|
||||||
const { type, expired, url, id } = code;
|
const { type, expired, url, id } = code;
|
||||||
|
console.log('code', code);
|
||||||
if (type === 'wechatMpWxaCode') {
|
if (type === 'wechatMpWxaCode') {
|
||||||
// 小程序码去实时获取(暂时不考虑缓存)
|
// 小程序码去实时获取(暂时不考虑缓存)
|
||||||
const wechatInstance = oak_wechat_sdk_1.WechatSDK.getInstance(appId, appSecret, 'wechatMp');
|
const wechatInstance = oak_wechat_sdk_1.WechatSDK.getInstance(appId, appSecret, 'wechatMp');
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
import { EntityDict } from 'oak-app-domain';
|
||||||
|
import { Watcher } from 'oak-domain/lib/types';
|
||||||
|
import { GeneralRuntimeContext } from '../RuntimeContext';
|
||||||
|
declare const _default: Watcher<EntityDict, keyof EntityDict, GeneralRuntimeContext<EntityDict>>[];
|
||||||
|
export default _default;
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.default = [];
|
||||||
Loading…
Reference in New Issue