小游戏广告,支付和一些常用接口处理

This commit is contained in:
宫欣海
2025-04-12 19:07:21 +08:00
parent e6827ae014
commit de804f7fc7
22 changed files with 2134 additions and 37 deletions

View File

@@ -3516,6 +3516,15 @@ interface My {
*
*/
getLaunchOptionsSync(): AliyMiniprogram.AppLaunchOptions;
getEnterOptionsSync(): AliyMiniprogram.AppLaunchOptions;
requestGamePayment(data: {
customId: string,
buyQuantity: number,
extraInfo?: Record<string, any>,
success?: (res: { resultCode: number }) => void,
fail?: (res: CallBack.Fail) => void,
complete?: () => void
}): void;
/** 监听小游戏回到前台的事件 */
onShow(listener: (res: AliyMiniprogram.AppLaunchOptions) => void);