|
@@ -118,6 +118,23 @@ class TdwyController extends BaseController
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
+ //查询区域列表
|
|
|
+ public function getRegionByOrgId(){
|
|
|
+ $url = '/pangu/sdkServer/OrgManager/queryOrgList';
|
|
|
+ $parentOrgIds = Input::get('parentOrgIds', []);
|
|
|
+ $params = [
|
|
|
+ 'querySingleType' => true,
|
|
|
+ 'needPage' => true,
|
|
|
+ 'currentPage' => 1,
|
|
|
+ 'pageSize' => 10,
|
|
|
+ 'parentOrgIds' => $parentOrgIds,
|
|
|
+ 'queryType' => 0,
|
|
|
+ ];
|
|
|
+ $result = $this->curlPost($this->pre_url . $url, json_encode($params));
|
|
|
+ $result = json_decode($result, true);
|
|
|
+ return $result;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 发送请求
|
|
|
* @param string $url
|