|
|
@@ -356,11 +356,13 @@ class Login extends Manager
|
|
|
$EmployeeOpenidModel->insertGetId([
|
|
|
'company_id' => $company_id,
|
|
|
'employee_id' => $uid,
|
|
|
+ 'unionid' => $tokenData['unionid'] ?? '',
|
|
|
'openid' => $tokenData['openid'],
|
|
|
'type' => '3',
|
|
|
'insert_time' => time()
|
|
|
]);
|
|
|
} else {
|
|
|
+ $band_wechat_data->unionid = $tokenData['unionid'] ?? '';
|
|
|
$band_wechat_data->openid = $tokenData['openid'];
|
|
|
$band_wechat_data->type = '3';
|
|
|
$band_wechat_data->update_time = time();
|