wx.getSystemInfo 返回值mode是什么意思?

小程序 文章 2022-03-01 18:00 364 0 全屏看文

AI助手支持GPT4.0

wx.getSystemInfo 返回值mode是什么意思?What does wx.getSystemInfo return value mode mean?

wx.getSystemInfo 返回值mode是什么意思?

如题,都有那些值,对应哪些意思呢?具体如何区分朋友圈打开,小程序内部打开,企业微信打开?

For example, what values do they have? What do they mean? How to distinguish between open circle of friends, open inside applet and open enterprise wechat?

回答:

社区技术运营专员-Jahozheng:

看下场景值https://developers.weixin.qq.com/miniprogram/deveference/scene-list.html

BrandBin:是字段mode,不是model,文档没有给出具体意思,看起来像是运行环境
小赛:

https://developers.weixin.qq.com/miniprogram/dev/dev_wxwork/dev-doc/qywx-api/foundation/wxgetsysteminfosync.html

wx.getSystemInfoSync(Object object)

小程序可以在微信和企业微信中调用此接口,但是在企业微信中调用此接口时,会额外返回一个 environment 字段(微信中不返回),如此字段值为 wxwork,则表示当前小程序运行在企业微信环境中。

wx.getSystemInfo 的同步版本



小赛:wx.getSystemInfo(Object object)
,:开放转区

-EOF-

AI助手支持GPT4.0