第三方平台 WEB + 小程序的这种需求如何实现?

小程序 文章 2021-01-27 11:41 408 0 全屏看文

AI助手支持GPT4.0

第三方平台 WEB + 小程序的这种需求如何实现?How to achieve this requirement of the third-party platform WEB + applet?

第三方平台 WEB + 小程序的这种需求如何实现?

现有一个SAAS平台,每个租户都有各自的子域名

如:A.SAAS.COM,B.SAAS.COM, C.SAAS.COM

所有租户网站都接入了SAAS.COM 这个域名的微信扫码登录(对应开放平台中的应用APP1)。

现在给所有租户开通了服务商模式的代注册小程序,我们的问题是如何能打通 APP1 和各自对应的小程序数据?开放平台中对于不同主体的小程序添加上限是5个,这个数量远远不够

There is a SaaS platform, each tenant has its own sub domain name, such as a SAAS.COM ,B. SAAS.COM , C. SAAS.COM All tenant websites are connected SAAS.COM Wechat scan code login of this domain name (corresponding to app1 in the open platform). Now we have opened the service provider mode proxy registration applet for all tenants. Our question is how can we get through app1 and the corresponding applet data? In the open platform, the maximum number of applets for different subjects is 5, which is far from enough

回答:

陕西破折号:

给每个子域名做个代理,把登录的接口代理到主域名上去。好比

a.saas.com/login 代理到saas.com/login

跨商通:

按你的方案做不到。

可以试试将每个商家的SAAS网站的登录方式改成商家小程序的openid登录,理论上是可行的(没真试过)。短暂想到的办法比如:网站显示登录二维码是小程序的二维码,用户扫码后会打开小程序的某页面(用于登录),从而网站可以获得该用户小程序的openid,打通web和小程序。仅供参考。

好嗨哟:

请官方帮忙看看~~

-EOF-

AI助手支持GPT4.0