| 1234567891011121314151617181920212223 |
- //
- // WeChatMiniProgramHelper.h
- // MSYOUPAI
- //
- // Created by 陈民 on 2025/10/15.
- // Copyright © 2025 MS. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <WeChatOpenSDK/WXApi.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface WeChatMiniProgramHelper : NSObject
- /// 打开微信小程序
- /// @param userName 小程序原始ID (如 gh_xxxxxx)
- /// @param path 小程序页面路径,如 "pages/index/index"
- /// @param hdImageData 小程序消息封面图片,可为nil
- /// @param scene 打开场景,默认 0
- + (void)openMiniProgramWithUserName:(NSString *)userName
- path:(NSString *)path;
- @end
- NS_ASSUME_NONNULL_END
|