Merge branch 'hotfix/ali_kingbocai' of wmtx/platform into release

修改公司使用阿里商户
master
万盟天下 4 years ago committed by Gogs
commit 8c68d9437d

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