From cb3e237b6fb86314a91c85134f408d155d4cc11a Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Tue, 20 Aug 2024 13:43:36 +0800 Subject: [PATCH] * [task#125955,done,0.3h] process return data for story close. --- api/v1/entries/storyclose.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/entries/storyclose.php b/api/v1/entries/storyclose.php index 1b32185e85..69d4c9aa63 100644 --- a/api/v1/entries/storyclose.php +++ b/api/v1/entries/storyclose.php @@ -28,7 +28,7 @@ class storyCloseEntry extends entry $data = $this->getData(); if(!$data) return $this->send400('error'); - if(isset($data->status) and $data->status == 'fail') return $this->sendError(zget($data, 'code', 400), $data->message); + if(isset($data->result) && $data->result == 'fail') return $this->sendError(zget($data, 'code', 400), $data->message); $story = $this->loadModel('story')->getByID($storyID);