区分微信小程序、企业微信、微信、Web 、App
问题
如何区分微信小程序、企业微信、微信、Web 、App
解决
if ((Form.Client.ClientSource & Smobiler.Core.ClientSource.WeChatMiniProgram) == Smobiler.Core.ClientSource.WeChatMiniProgram) 判断微信小程序
if ((Form.Client.ClientSource & Smobiler.Core.ClientSource.WeWork) == Smobiler.Core.ClientSource.WeWork) 判断企业微信
if ((Form.Client.ClientSource & Smobiler.Core.ClientSource.WeChat) == Smobiler.Core.ClientSource.WeChat) 判断为微信
if ((Form.Client.ClientSource & Smobiler.Core.ClientSource.Web) == Smobiler.Core.ClientSource.Web) 判断为web
if ((Form.Client.ClientSource & Smobiler.Core.ClientSource.App) == Smobiler.Core.ClientSource.App) 判断为app