优化空值修改4

master
chenzhi 5 years ago
parent 644e38fd1f
commit 4ebe2780cc

@ -326,6 +326,9 @@ class PromoteCompanyController extends ThinkController
if(isset($save['company_belong']) && ($y_belong != $save['company_belong'])){
$is_change_belong = true;
}
if(empty($save['contact_phone'])){
$save['contact_phone'] = NULL;
}
$res = $model->save($save);
if ($res) {
\Think\Log::actionLog('PromoteCompany/edit', 'partner', $res);

Loading…
Cancel
Save