优化:取消代理唯一键操作

优化:代理 - 支持用户同时拥有多个相同的角色
This commit is contained in:
wuhui_zzw 2024-02-22 09:31:45 +08:00
parent e17919c9f6
commit 4239e59069
3 changed files with 1 additions and 12 deletions

View File

@ -79,7 +79,7 @@ class AgentDao extends BaseDao{
}, },
]) ])
->order('create_time DESC,id DESC') ->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']);
} }

View File

@ -25,15 +25,6 @@ class Agent extends BaseModel{
return 'agent'; 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: 获取器 —— 获取配送商关联的商户 * Common: 获取器 —— 获取配送商关联的商户
* Author: wu-hui * Author: wu-hui

View File

@ -285,8 +285,6 @@ class AgentRepository extends BaseRepository{
->select() ->select()
->toArray(); ->toArray();
} }
// 信息处理及返回
$childrenList = array_column($childrenList,null,'only_key');
return [ return [
'info' => $info ?? [], 'info' => $info ?? [],