MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / __http

Method __http

mini_program/common/ServiceBase.js:126–132  ·  view source on GitHub ↗

* __http - wx.request

(obj)

Source from the content-addressed store, hash-verified

124 * __http - wx.request
125 */
126 __http(obj) {
127 return new Promise((resolve, reject) => {
128 obj.success = (res) => resolve(res)
129 obj.fail = (res) => reject(res)
130 wx.request(obj)
131 })
132 }
133
134 /**
135 * __resolve

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected