From 9402ab35f5f62900024aad4fff6c06b7502107a1 Mon Sep 17 00:00:00 2001 From: 0x012FA733 <49284128+0x012FA733@users.noreply.github.com> Date: Thu, 3 Jun 2021 18:19:09 +0800 Subject: [PATCH] [update] GroupSignIn --- src/plugin/GroupSignIn.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/plugin/GroupSignIn.php b/src/plugin/GroupSignIn.php index 6247abb..91f9408 100644 --- a/src/plugin/GroupSignIn.php +++ b/src/plugin/GroupSignIn.php @@ -72,8 +72,13 @@ class GroupSignIn if ($de_raw['code'] != '0') { // TODO 任务失败原因 - print_r($de_raw); - Log::warning('在应援团{' . $groupInfo['group_name'] . '}中签到失败, 原因待查'); + // {"code": 710001, "msg": "应援失败>_<", "message": "应援失败>_<", "ttl": "1", "data": {"add_num": 0, "status": 0}} + if ($de_raw['code'] == '710001') { + Log::warning('在应援团{' . $groupInfo['group_name'] . '}中签到失败, 亲密度已达上限'); + } else { + print_r($de_raw); + Log::warning('在应援团{' . $groupInfo['group_name'] . '}中签到失败, 原因待查'); + } return false; } if ($de_raw['data']['status'] == '0') {