소스 검색

获取门店

linwu 1 년 전
부모
커밋
f0cd566b2e
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      app/mainapp/controller/Index.php

+ 6 - 0
app/mainapp/controller/Index.php

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