|
@@ -7,6 +7,7 @@ import { AppStorageKeyCollect } from '../constants';
|
|
|
import { WechatUtil } from '../utils/wechat/WechatUtil';
|
|
import { WechatUtil } from '../utils/wechat/WechatUtil';
|
|
|
import { YTLog } from '../utils/YTLog';
|
|
import { YTLog } from '../utils/YTLog';
|
|
|
import { wechatEventHandler } from '../utils/wechat/WXApiEventHandlerImpl';
|
|
import { wechatEventHandler } from '../utils/wechat/WXApiEventHandlerImpl';
|
|
|
|
|
+import { ALiPayUtil } from '../utils/alipay/ALiPayUtil';
|
|
|
|
|
|
|
|
const TAG: string = '[EntryAbility]';
|
|
const TAG: string = '[EntryAbility]';
|
|
|
const DOMAIN = 0x0000;
|
|
const DOMAIN = 0x0000;
|
|
@@ -70,6 +71,7 @@ export default class EntryAbility extends UIAbility {
|
|
|
YTLog.info(TAG, `onNewWant parameters: ${JSON.stringify(want.parameters)}`);
|
|
YTLog.info(TAG, `onNewWant parameters: ${JSON.stringify(want.parameters)}`);
|
|
|
YTLog.info(TAG, `onNewWant full Want: ${JSON.stringify(want)}`);
|
|
YTLog.info(TAG, `onNewWant full Want: ${JSON.stringify(want)}`);
|
|
|
this.handleWeChatCallIfNeed(want);
|
|
this.handleWeChatCallIfNeed(want);
|
|
|
|
|
+ this.handleAliPayResponse(want);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private handleWeChatCallIfNeed(want: Want) {
|
|
private handleWeChatCallIfNeed(want: Want) {
|
|
@@ -77,4 +79,8 @@ export default class EntryAbility extends UIAbility {
|
|
|
const handled = WechatUtil.getWechatApi().handleWant(want, wechatEventHandler);
|
|
const handled = WechatUtil.getWechatApi().handleWant(want, wechatEventHandler);
|
|
|
YTLog.info(TAG, `WXApi.handleWant result: ${handled}, eventHandler: ${wechatEventHandler ? 'exists' : 'null'}`);
|
|
YTLog.info(TAG, `WXApi.handleWant result: ${handled}, eventHandler: ${wechatEventHandler ? 'exists' : 'null'}`);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ private handleAliPayResponse(want: Want) {
|
|
|
|
|
+ ALiPayUtil.handleResponse(want)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|