|
|
|
|
@ -43,7 +43,7 @@ class UpdateCompany extends Command
|
|
|
|
|
public function handle()
|
|
|
|
|
{
|
|
|
|
|
$user_id = $this->option('user_id');
|
|
|
|
|
$updateLocal = (int) $this->option('address');
|
|
|
|
|
$updateLocal = (int)$this->option('address');
|
|
|
|
|
// 更新公司信息
|
|
|
|
|
$this->compnay($user_id);
|
|
|
|
|
// 更新经纬度信息(可选)
|
|
|
|
|
@ -106,11 +106,11 @@ class UpdateCompany extends Command
|
|
|
|
|
'stock_type' => $result['stockType'],
|
|
|
|
|
'company_tag' => implode(',', $result['tagList']),
|
|
|
|
|
// 更新日期
|
|
|
|
|
'update_date' => $result['updatedDate'],
|
|
|
|
|
// 'update_date' => $result['updatedDate'],
|
|
|
|
|
// 管理平台
|
|
|
|
|
'group_name' => ($result['projectUsers'][0]['groupName'] ?? null),
|
|
|
|
|
// 'group_name' => ($result['projectUsers'][0]['groupName']) ?? null,
|
|
|
|
|
// 项目经理
|
|
|
|
|
'user_name' => ($result['projectUsers'][0]['userName'] ?? null),
|
|
|
|
|
// 'user_name' => ($result['projectUsers'][0]['userName']) ?? null,
|
|
|
|
|
];
|
|
|
|
|
$company = Company::updateOrCreate($where, $data);
|
|
|
|
|
// 更新用户关联
|
|
|
|
|
|