master
ELF 4 years ago
parent 4892623897
commit 05fac79ed3

@ -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;
}

Loading…
Cancel
Save