|
@@ -220,6 +220,12 @@ class Index extends BaseController
|
|
|
page_result(0, "", $post);
|
|
|
}
|
|
|
|
|
|
+ public function getAgent()
|
|
|
+ {
|
|
|
+ $agent = AgentModel::field('id,workerid,title')->where('status',1)->select();
|
|
|
+ page_result(0,'',$agent);
|
|
|
+ }
|
|
|
+
|
|
|
public function getWorker()
|
|
|
{
|
|
|
$workerids = AgentModel::field('workerid')->where('status',1)->distinct(true)->select()->column('workerid');
|