作者 zhaozzwei

更新 LoginController.php

@@ -95,6 +95,9 @@ class LoginController extends HomeBaseController @@ -95,6 +95,9 @@ class LoginController extends HomeBaseController
95 if (!$op_tel_info){ 95 if (!$op_tel_info){
96 $op_info = Db::name('user')->where(['openid'=>session('openid')])->find(); 96 $op_info = Db::name('user')->where(['openid'=>session('openid')])->find();
97 if($op_info){ 97 if($op_info){
  98 + if($res['user_type'] == '2'){
  99 + $dataup['headimgurl'] = $op_info['headimgurl'];
  100 + }
98 $dataup['openid'] = session('openid'); 101 $dataup['openid'] = session('openid');
99 $dataup['province'] = $op_info['province']; 102 $dataup['province'] = $op_info['province'];
100 $dataup['city'] = $op_info['city']; 103 $dataup['city'] = $op_info['city'];