|
|
|
@ -92,6 +92,7 @@ class PublicController extends \Think\Controller
|
|
|
|
|
'mobile_phone' => $promote['mobile_phone'],
|
|
|
|
|
'nickname' => $promote['nickname'],
|
|
|
|
|
'username' => $promote['nickname'] ?: $promote['account'],
|
|
|
|
|
'company_id' => $promote['company_id'],
|
|
|
|
|
);
|
|
|
|
|
$session_name = 'cp_user_auth';
|
|
|
|
|
if (I('auto_login')) {
|
|
|
|
@ -111,6 +112,7 @@ class PublicController extends \Think\Controller
|
|
|
|
|
'account' => $partner['link_phone'],
|
|
|
|
|
'mobile_phone' => $partner['link_phone'],
|
|
|
|
|
'nickname' => $partner['link_man'],
|
|
|
|
|
'company_id' => $partner['id'],
|
|
|
|
|
'username' => $partner['link_man'] ?: $partner['account'],
|
|
|
|
|
);
|
|
|
|
|
$session_name = 'cp_user_auth';
|
|
|
|
|