调试注册接口

webUi^2
zhaocheng 5 years ago
parent 1831735a38
commit 0dd1de6794
  1. 4
      frontend/controllers/ApiController.php

@ -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;

Loading…
Cancel
Save