fixbug_24544

This commit is contained in:
sunjun
2022-06-29 09:16:29 +00:00
parent fcda045040
commit dda32cc5ff
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -2168,7 +2168,7 @@ class testcase extends control
*/
public function importToLib($caseID = 0)
{
if(!empty($_POST))
if($this->server->request_method == 'POST')
{
$this->testcase->importToLib($caseID);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));