|
|
|
@ -904,6 +904,10 @@ class ApiController extends \yii\web\Controller |
|
|
|
|
throw new \Exception(json_encode($user_log_info->getErrors())); |
|
|
|
|
} |
|
|
|
|
$tran->commit(); |
|
|
|
|
$result['data'] = [ |
|
|
|
|
'username' => $user->username, |
|
|
|
|
'password' => '123456', |
|
|
|
|
]; |
|
|
|
|
} catch (\Exception $e) { |
|
|
|
|
$tran->rollBack(); |
|
|
|
|
$result['code'] = -1; |
|
|
|
|