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;
}
diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php
index d09b4ae87..3ff0f0ce2 100644
--- a/Application/Home/Controller/QueryController.class.php
+++ b/Application/Home/Controller/QueryController.class.php
@@ -2111,7 +2111,7 @@ class QueryController extends BaseController
$timeout = 0;
$records = [];
- if (intval($endTime - $beginTime) / (24 * 3600) <= 7) {
+ if (intval($endTime - $beginTime) / (24 * 3600) <= 31) {
$promoteRepository = new PromoteRepository();
$createRoleCountList = $promoteRepository->getCreateRoleCountByIds($ids, $params);
$createRoleUserCountList = $promoteRepository->getCreateRoleUserCountByIds($ids, $params);
diff --git a/Application/Home/View/default/Query/achievement.html b/Application/Home/View/default/Query/achievement.html
index 7359bbf11..460cd03c0 100644
--- a/Application/Home/View/default/Query/achievement.html
+++ b/Application/Home/View/default/Query/achievement.html
@@ -162,7 +162,7 @@