From 05fac79ed39e1b8684db0caa054102cf9409274f Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Mon, 13 Jul 2020 13:21:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/PromoteCompanyController.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; }