()
| 204 | }) |
| 205 | } |
| 206 | function getInviteInfo() { |
| 207 | let body = {} |
| 208 | return new Promise((resolve) => { |
| 209 | $.post(taskPostUrl("city_masterMainData",body), async (err, resp, data) => { |
| 210 | try { |
| 211 | if (err) { |
| 212 | console.log(`${JSON.stringify(err)}`) |
| 213 | console.log(`${$.name} API请求失败,请检查网路重试`) |
| 214 | } else { |
| 215 | if (safeGet(data)) { |
| 216 | data = JSON.parse(data); |
| 217 | // console.log(data) |
| 218 | } |
| 219 | } |
| 220 | } catch (e) { |
| 221 | $.logErr(e, resp) |
| 222 | } finally { |
| 223 | resolve(data); |
| 224 | } |
| 225 | }) |
| 226 | }) |
| 227 | } |
| 228 | function city_lotteryAward() { |
| 229 | let body = {} |
| 230 | return new Promise((resolve) => { |
no test coverage detected