|
@@ -94,12 +94,12 @@ class HouseAdmin extends Backend |
|
@@ -94,12 +94,12 @@ class HouseAdmin extends Backend |
94
|
}
|
94
|
}
|
95
|
$result = $this->model->allowField(true)->save($params);
|
95
|
$result = $this->model->allowField(true)->save($params);
|
96
|
|
96
|
|
97
|
-// $house_admin_id = $this->model->getLastInsID();
|
|
|
98
|
-//
|
|
|
99
|
-// $data = Db::name('house_admin')->where('id',$house_admin_id)->find();
|
|
|
100
|
-// if(!empty($data['user_id'])){
|
|
|
101
|
-// Db::name('user')->where('id',$data['user_id'])->update(['identity'=>1]);
|
|
|
102
|
-// }
|
97
|
+ $house_admin_id = $this->model->getLastInsID();
|
|
|
98
|
+
|
|
|
99
|
+ $data = Db::name('house_admin')->where('id',$house_admin_id)->find();
|
|
|
100
|
+ if(!empty($data['user_id'])){
|
|
|
101
|
+ Db::name('user')->where('id',$data['user_id'])->update(['identity'=>1]);
|
|
|
102
|
+ }
|
103
|
|
103
|
|
104
|
Db::commit();
|
104
|
Db::commit();
|
105
|
} catch (ValidateException $e) {
|
105
|
} catch (ValidateException $e) {
|