|
@@ -152,9 +152,6 @@ class AdminIndexController extends AdminBaseController |
|
@@ -152,9 +152,6 @@ class AdminIndexController extends AdminBaseController |
152
|
$Hospital=new HospitalModel();
|
152
|
$Hospital=new HospitalModel();
|
153
|
$hospitals=$Hospital->getHospital()->toArray();
|
153
|
$hospitals=$Hospital->getHospital()->toArray();
|
154
|
$platform=$Hospital->getPlatment()->toArray();
|
154
|
$platform=$Hospital->getPlatment()->toArray();
|
155
|
- dump($user);
|
|
|
156
|
- dump($hospitals);
|
|
|
157
|
- dump($platform);
|
|
|
158
|
$this->assign('user',$user);
|
155
|
$this->assign('user',$user);
|
159
|
$this->assign('jobs',$jobs);
|
156
|
$this->assign('jobs',$jobs);
|
160
|
$this->assign('hospitals',$hospitals);
|
157
|
$this->assign('hospitals',$hospitals);
|
|
@@ -169,10 +166,10 @@ class AdminIndexController extends AdminBaseController |
|
@@ -169,10 +166,10 @@ class AdminIndexController extends AdminBaseController |
169
|
*/
|
166
|
*/
|
170
|
public function userInfoPost(){
|
167
|
public function userInfoPost(){
|
171
|
$map['id']=input('id');
|
168
|
$map['id']=input('id');
|
172
|
- dump($map);
|
169
|
+
|
173
|
$data=input();
|
170
|
$data=input();
|
174
|
unset($data['id']);
|
171
|
unset($data['id']);
|
175
|
- dump($data);
|
172
|
+ // dump($data);
|
176
|
$result=\db('user')->where($map)->update($data);
|
173
|
$result=\db('user')->where($map)->update($data);
|
177
|
if ($result==1){
|
174
|
if ($result==1){
|
178
|
$this->success('编辑成功!');
|
175
|
$this->success('编辑成功!');
|