MCPcopy Create free account
hub / github.com/CoderOpen/waimai / getProvider

Function getProvider

front/common/authorize.js:88–97  ·  view source on GitHub ↗
(service)

Source from the content-addressed store, hash-verified

86
87// 获取服务商信息
88const getProvider = (service) => {
89 return new Promise((resolve, reject) => {
90 if(!service){ service = 'oauth' }
91 uni.getProvider({
92 service: service, //服务类型 登录授权
93 success: function(res) {resolve(res.provider[0])},
94 fail:function() { reject("获取服务商失败") }
95 });
96 })
97}
98
99// 是否开启了获取用户名授权
100const getSetting = function() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected