route('type');; //关于我们、注册协议、购买协议 if (!in_array($type, ['about', 'reg_protocol', 'buy_protocol'])) { return $this->error('参数无效'); } $about = AgentInfo::where('agent_id', $this->agent_id)->value($type); return $this->success([$type => $about]); } }