diff --git a/Application/Admin/Controller/PromoteCompanyController.class.php b/Application/Admin/Controller/PromoteCompanyController.class.php index 161123c12..9f434f15b 100644 --- a/Application/Admin/Controller/PromoteCompanyController.class.php +++ b/Application/Admin/Controller/PromoteCompanyController.class.php @@ -252,6 +252,9 @@ class PromoteCompanyController extends ThinkController if(isset($save['resources'])){ $save['resources'] = json_encode($save['resources'],JSON_UNESCAPED_UNICODE); } + if(empty($save['contact_phone'])){ + $save['contact_phone'] = 0; + } $res = $model->add($save); if ($res) { @@ -327,7 +330,7 @@ class PromoteCompanyController extends ThinkController $is_change_belong = true; } if(empty($save['contact_phone'])){ - $save['contact_phone'] = NULL; + $save['contact_phone'] = 0; } $res = $model->save($save); if ($res) {