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

Function authDo

front/common/authorize.js:72–85  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

70
71// 保存用户信息 write by self
72const authDo = function(params) {
73 return new Promise(function (resolve, reject) {
74 uni.request({
75 url: baseUrl +'/api/chiheyouhui/login',
76 data: params,
77 method:'POST',
78 header: {
79 'content-type': 'application/x-www-form-urlencoded'
80 },
81 success: function(res){ resolve(res) },
82 fail:function(){ reject("保存用户信息失败") }
83 })
84 })
85}
86
87// 获取服务商信息
88const getProvider = (service) => {

Callers 1

loginFunction · 0.85

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected