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