taskReceiveTask static method

Future<DataResult> taskReceiveTask({
  1. required int taskId,
})

领取任务

Implementation

static Future<DataResult> taskReceiveTask({required int taskId}) async {
  var res = await BaseDao.fromBaseEncryptV3(
    {'taskId': taskId},
    Address.taskReceiveTask(),
  );
  if (res.result) {
    return DataResult(res.data, true);
  }
  return res;
}