# gm命令小程序
# 一、介绍
一个给游戏提供 gm 命令操作的小程序
# 二、使用
在小游戏中插入跳转到小程序的代码片段
const account = await accountSystem.getAccount();
mogs.navigateToMiniProgram({
appId: "wxf722beac911a6047",
extraData: {
appid: 10000, // mogs 的 mogsId
app_plat: 1, //游戏平台,1 微信,2 QQ,3 PC(仅测试用),4 有乐
env: 'testtime', //当前游戏连接mogs的环境配置,dev,testbusiness,testtime
openid: account.openId, //玩家的唯一标识,微信小游戏的用户ID
js_code: account.token, //登录态,微信小游戏的用户token
},
envVersion: "trial"
});
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
注意:
- 跳转小程序appid:wxf722beac911a6047
- 跳转小程序版本:体验版trial,需要开通权限,请扫描下面二维码提交申请,并企业微信联系
fancylin