diff --git a/Application/Admin/Controller/PromoteCompanyController.class.php b/Application/Admin/Controller/PromoteCompanyController.class.php index 3f8975d4c..998ce2dd9 100644 --- a/Application/Admin/Controller/PromoteCompanyController.class.php +++ b/Application/Admin/Controller/PromoteCompanyController.class.php @@ -252,7 +252,9 @@ class PromoteCompanyController extends ThinkController $save['last_up_time'] = $time; $save['contact_begin']=strtotime($save['contact_begin']); $save['contact_end']=strtotime($save['contact_end']); - + if (isset($save['company_belong'])) { + $save['ali_partner'] = in_array($save['company_belong'], [1, 2]) ? 1 : 0; + } if(isset($save['resources'])){ $save['resources'] = json_encode($save['resources'],JSON_UNESCAPED_UNICODE); } @@ -340,6 +342,9 @@ class PromoteCompanyController extends ThinkController if(isset($save['company_belong']) && ($y_belong != $save['company_belong'])){ $is_change_belong = true; } + if (isset($save['company_belong'])) { + $save['ali_partner'] = in_array($save['company_belong'], [1, 2]) ? 1 : 0; + } if(empty($save['contact_phone'])){ $save['contact_phone'] = 0; }