| 1109 | |
| 1110 | //关注,领券等API |
| 1111 | async function clockInFollowForFarm(id, type, step) { |
| 1112 | const functionId = arguments.callee.name.toString(); |
| 1113 | let body = { |
| 1114 | id, |
| 1115 | type, |
| 1116 | step |
| 1117 | } |
| 1118 | if (type === 'theme') { |
| 1119 | if (step === '1') { |
| 1120 | $.themeStep1 = await request(functionId, body); |
| 1121 | } else if (step === '2') { |
| 1122 | $.themeStep2 = await request(functionId, body); |
| 1123 | } |
| 1124 | } else if (type === 'venderCoupon') { |
| 1125 | if (step === '1') { |
| 1126 | $.venderCouponStep1 = await request(functionId, body); |
| 1127 | } else if (step === '2') { |
| 1128 | $.venderCouponStep2 = await request(functionId, body); |
| 1129 | } |
| 1130 | } |
| 1131 | } |
| 1132 | |
| 1133 | // 领取连续签到7天的惊喜礼包API |
| 1134 | async function gotClockInGift() { |