From 4ebe2780cc664c1f2dbafe5e322c4e55366e271d Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 12 May 2020 18:17:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A9=BA=E5=80=BC=E4=BF=AE?= =?UTF-8?q?=E6=94=B94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/PromoteCompanyController.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Application/Admin/Controller/PromoteCompanyController.class.php b/Application/Admin/Controller/PromoteCompanyController.class.php index 89a3ec7dc..161123c12 100644 --- a/Application/Admin/Controller/PromoteCompanyController.class.php +++ b/Application/Admin/Controller/PromoteCompanyController.class.php @@ -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);