* Return id when create object by API.

This commit is contained in:
holan20180123
2021-05-12 17:00:26 +08:00
parent ac6f3f5201
commit 49e9302c31
9 changed files with 33 additions and 17 deletions
+1
View File
@@ -280,6 +280,7 @@ class sso extends control
if($_POST)
{
$result = $this->sso->createUser();
if($this->viewType == 'json') $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $result['id']));
if($result['status'] != 'success') die($result['data']);
die('success');
}