Commit 0afecf43 authored by hujun's avatar hujun

调整开启事务位置

parent 82d143ff
...@@ -217,7 +217,6 @@ class Member extends Basic ...@@ -217,7 +217,6 @@ class Member extends Basic
$data['status'] = 101; $data['status'] = 101;
$data['data'] = array(); $data['data'] = array();
$this->user->startTrans();
if ($phone) { if ($phone) {
$user_data = $this->user->findUserByPhone('*', $phone, true); $user_data = $this->user->findUserByPhone('*', $phone, true);
} else { } else {
...@@ -228,6 +227,8 @@ class Member extends Basic ...@@ -228,6 +227,8 @@ class Member extends Basic
switch ($type) { switch ($type) {
case 'add' : case 'add' :
$this->user->startTrans();
if ($pwd == '') { if ($pwd == '') {
return $this->response(101, '密码为空'); return $this->response(101, '密码为空');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment