This commit is contained in:
王怡栋
2021-09-22 08:45:09 +08:00
parent 01b7db1dd6
commit 7ed13fff0a
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -672,6 +672,8 @@ class mailModel extends model
*/
public function sendmail($objectID, $actionID)
{
if(empty($objectID) or empty($actionID)) return;
/* Load module and get vars. */
$this->loadModel('action');
$users = $this->loadModel('user')->getPairs('noletter');
+1 -1
View File
@@ -696,7 +696,7 @@ class testcase extends control
$this->view->isLibCase = $isLibCase;
$this->view->caseFails = $caseFails;
if(defined('RUN_MODE') && RUN_MODE == 'api') return $this->send(array('status' => 'success', 'case' => $case));
if(defined('RUN_MODE') and RUN_MODE == 'api' and !empty($this->app->version)) return $this->send(array('status' => 'success', 'case' => $case));
$this->display();
}