MCPcopy Create free account
hub / github.com/Mashiro2000/HeyTapTask / runShareTask

Method runShareTask

TaskCenter.py:215–222  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

213
214 # 分享任务
215 def runShareTask(self):
216 if self.shareData['completeStatus'] == 0:
217 self.shareGoods(flag=1,count=self.shareData['times'] - self.shareData['readCount'])
218 elif self.shareData['completeStatus'] == 1:
219 self.cashingCredits(self.shareData['name'],self.shareData['marking'], self.shareData['type'],self.shareData['credits'])
220 elif self.shareData['completeStatus'] == 2:
221 notify(f"[{self.shareData['name']}]\t已完成,奖励已领取")
222 time.sleep(random.randint(1,3))
223
224 # 分享商品
225 def shareGoods(self, flag,count):

Callers 1

runTaskCenterMethod · 0.95

Calls 3

shareGoodsMethod · 0.95
cashingCreditsMethod · 0.95
notifyFunction · 0.70

Tested by

no test coverage detected