|
@@ -167,11 +167,12 @@ class User extends Base
|
|
|
"sex"=>$acc->userinfo->sex,
|
|
|
"email"=>$acc->userinfo->email,
|
|
|
"level"=>$acc->level,
|
|
|
- "itemid"=>$acc->accountitem->itemid,
|
|
|
- "position"=>$acc->accountitem->position,
|
|
|
+ "itemid"=>$acc->accountitem->itemid??0,
|
|
|
+ "position"=>$acc->accountitem->position??'',
|
|
|
"depart_name"=>$acc->depart_name,
|
|
|
"company_relaton"=>$acc->company_relaton,
|
|
|
];
|
|
|
+
|
|
|
if($post['openId']!=''&& $acc->userinfo->openId!=$post['openId'] ){
|
|
|
$acc->userinfo->openId=$post['openId'];
|
|
|
$this->model->userinfo()->save($acc->userinfo->toArray());
|