MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / okCode

Function okCode

wxapp/junpinhui.js:103–105  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

101}
102
103function okCode(res) {
104 return String(res?.code) === "10000" || res?.success === true || Number(res?.err) === 0;
105}
106
107function assertOk(res, action) {
108 if (!res || !okCode(res)) {

Callers 2

assertOkFunction · 0.85
withReloginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected