diff --git a/app/common/dao/marketing/AgentDao.php b/app/common/dao/marketing/AgentDao.php index 4223334..bb78438 100644 --- a/app/common/dao/marketing/AgentDao.php +++ b/app/common/dao/marketing/AgentDao.php @@ -79,7 +79,7 @@ class AgentDao extends BaseDao{ }, ]) ->order('create_time DESC,id DESC') - ->append(['only_key','mer_id_list','children_count','agent_type_text']); + ->append(['mer_id_list','children_count','agent_type_text']); } diff --git a/app/common/model/marketing/Agent.php b/app/common/model/marketing/Agent.php index 5fe9c07..425f35f 100644 --- a/app/common/model/marketing/Agent.php +++ b/app/common/model/marketing/Agent.php @@ -25,15 +25,6 @@ class Agent extends BaseModel{ return 'agent'; } - /** - * Common: 获取器 —— 信息唯一键(上级一致) - * Author: wu-hui - * Time: 2024/01/24 18:15 - * @return string - */ - public function getOnlyKeyAttr():string{ - return ($this->uid ?? '') . '_' . ($this->agent_type ?? ''); - } /** * Common: 获取器 —— 获取配送商关联的商户 * Author: wu-hui diff --git a/app/common/repositories/marketing/AgentRepository.php b/app/common/repositories/marketing/AgentRepository.php index b4083b1..c4b6daa 100644 --- a/app/common/repositories/marketing/AgentRepository.php +++ b/app/common/repositories/marketing/AgentRepository.php @@ -285,8 +285,6 @@ class AgentRepository extends BaseRepository{ ->select() ->toArray(); } - // 信息处理及返回 - $childrenList = array_column($childrenList,null,'only_key'); return [ 'info' => $info ?? [],