MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / assertOk

Function assertOk

wxapp/fuyouhui.js:128–133  ·  view source on GitHub ↗
(res, action)

Source from the content-addressed store, hash-verified

126}
127
128function assertOk(res, action) {
129 if (!res || res.hasError || String(res.responseCode) !== "0") {
130 throw new Error(`${action}失败: ${res?.errorMessage || res?.message || JSON.stringify(res)}`);
131 }
132 return res.data || {};
133}
134
135class Task {
136 constructor(raw) {

Callers 7

loginByOperateDataMethod · 0.70
getMemberInfoMethod · 0.70
getUserSignMethod · 0.70
queryAllRewardsMethod · 0.70
queryScrollScreenMethod · 0.70
queryPhotoMethod · 0.70
receiveCouponMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected