MCPcopy Create free account
hub / github.com/Semporia/Scripts / sellgoods

Function sellgoods

jd_cfd_loop.js:136–158  ·  view source on GitHub ↗
(body)

Source from the content-addressed store, hash-verified

134 })
135}
136function sellgoods(body) {
137 return new Promise((resolve) => {
138 $.get(taskUrl(`story/sellgoods`, body), (err, resp, data) => {
139 try {
140 if (err) {
141 console.log(`${JSON.stringify(err)}`)
142 console.log(`${$.name} sellgoods API请求失败,请检查网路重试`)
143 } else {
144 data = JSON.parse(data);
145 if (data.iRet === 0) {
146 console.log(`贝壳出售成功:获得${data.Data.ddwCoin}金币 ${data.Data.ddwMoney}财富\n`)
147 } else {
148 console.log(`贝壳出售失败:${data.sErrMsg}\n`)
149 }
150 }
151 } catch (e) {
152 $.logErr(e, resp);
153 } finally {
154 resolve();
155 }
156 })
157 })
158}
159
160// 捡贝壳
161async function queryshell() {

Callers 1

querystorageroomFunction · 0.70

Calls 4

taskUrlFunction · 0.70
getMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected