From ef0c00b9448b598c8ae89fac28fb61f63cd8ad54 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 21 Apr 2024 17:02:32 +0800 Subject: [PATCH 1/4] 1 --- webapp/controller/BagController.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index a9bdfcb1..e2da21dd 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -154,6 +154,8 @@ class BagController extends BaseAuthedController { $this->_rspErr($errCode, $errMsg); return; } + myself()->_rspOk(); + return; } $itemDto = Bag::findByType(mt\Item::FUNC_TYPE, mt\Item::FUNC_RENAME_CARD_SUBTYPE); error_log(json_encode($itemDto)); From a82d9fb3d1a16f4cc9ab0c107b1dbe186e9c4035 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 21 Apr 2024 17:08:42 +0800 Subject: [PATCH 2/4] 1 --- webapp/controller/OtherController.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/controller/OtherController.class.php b/webapp/controller/OtherController.class.php index 886a7fd3..3383783b 100644 --- a/webapp/controller/OtherController.class.php +++ b/webapp/controller/OtherController.class.php @@ -193,7 +193,10 @@ class OtherController extends BaseAuthedController { if (empty($taskStatus)) { return true; } - if (myself()->_getNowTime() <= strtotime($taskMeta['obtain_end_time'])) { + if (!$taskMeta) { + return true; + } + if (myself()->_getNowTime() > strtotime($taskMeta['obtain_end_time'])) { return true; } } From 33c954f89379d95c6506278c9dbba7df6afec7f6 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 21 Apr 2024 17:09:16 +0800 Subject: [PATCH 3/4] 1 --- webapp/controller/OtherController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/controller/OtherController.class.php b/webapp/controller/OtherController.class.php index 3383783b..4effc5e5 100644 --- a/webapp/controller/OtherController.class.php +++ b/webapp/controller/OtherController.class.php @@ -196,7 +196,7 @@ class OtherController extends BaseAuthedController { if (!$taskMeta) { return true; } - if (myself()->_getNowTime() > strtotime($taskMeta['obtain_end_time'])) { + if (myself()->_getNowTime() > strtotime($taskMeta['income_start_time'])) { return true; } } From 2f8f79d9b9c9f0f610a231d6a7abff830cb847af Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 21 Apr 2024 17:10:59 +0800 Subject: [PATCH 4/4] 1 --- webapp/controller/OtherController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/controller/OtherController.class.php b/webapp/controller/OtherController.class.php index 4effc5e5..257023a0 100644 --- a/webapp/controller/OtherController.class.php +++ b/webapp/controller/OtherController.class.php @@ -196,7 +196,7 @@ class OtherController extends BaseAuthedController { if (!$taskMeta) { return true; } - if (myself()->_getNowTime() > strtotime($taskMeta['income_start_time'])) { + if (myself()->_getNowTime() <= strtotime($taskMeta['income_start_time'])) { return true; } }