| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- 'use strict';
- /**
- * 特效 - 功能demo
- * @class
- */
- class EffectController extends Controller {
- constructor(ctx) {
- super(ctx);
- }
- /**
- * 所有方法接收两个参数
- * @param args 前端传的参数
- * @param event - ipc通信时才有值。详情见:控制器文档
- */
- /**
- * test
- */
- async test () {
- const result = await this.service.example.test('electron');
- // let tmpDir = Ps.getLogDir();
- // Log.info('tmpDir:', tmpDir);
- let mid = await Utils.machineIdSync(true);
- Log.info('mid 11111111:', mid);
- Utils.machineId().then((id) => {
- Log.info('mid 222222222:', id);
- });
- return result;
- }
- }
- EffectController.toString = () => '[class EffectController]';
- module.exports = EffectController;
|