Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
d85c2ba0
Commit
d85c2ba0
authored
Oct 23, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取站点列表 跨域
parent
89a08676
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
73 deletions
+1
-73
Site.php
application/api_broker/controller/Site.php
+1
-73
No files found.
application/api_broker/controller/Site.php
View file @
d85c2ba0
...
...
@@ -23,50 +23,6 @@ class Site extends Basic
$this
->
aSite
=
new
ASite
();
}
/**
* 新增数据
* User: 朱伟
* Date:2018-10-18
* Time:10:50:55
*/
// public function addSite()
// {
// header('Access-Control-Allow-Origin:*');
// $params = $this->params;
//
// /*$params = array(
// "name" => 上海站,
// "city" => 上海市,
// );*/
// $checkResult = $this->validate($params, "Site.addSite");
// if (true !== $checkResult) {
// return $this->response("101", $checkResult);
// }
//
//
// //先判断是否已经存在数据
// $field = 'id,is_del';
// //$get_params['name'] = $params["name"];
// $get_params['city'] = $params["city"];
// $res = $this->aSite->getSite($field,$get_params);
//
// if($res){//如果存在
// return $this->response("101", "重复添加");
// }else{//不存在则新增数据
// $insert["name"] = $params['name'];
// $insert["city"] = $params['city'];
// $insert["is_del"] = 0;
//
// $res = $this->aSite->saveSite($insert);//int(1)
// }
//
// if ($res) {
// return $this->response("200", "成功");
// } else {
// return $this->response("101", "失败");
// }
//
// }
/**
* 获取站点列表
...
...
@@ -76,6 +32,7 @@ class Site extends Basic
*/
public
function
getSiteList
()
{
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
/*$params = array(
...
...
@@ -91,32 +48,4 @@ class Site extends Basic
}
/**
* 关闭或开启站点
* @return \think\Response
*/
// public function delImageDepot(){
// $params = $this->params;
// $checkResult = $this->validate($params, "Site.delImageDepot");
// if (true !== $checkResult) {
// return $this->response("101", $checkResult);
// }
// $params_['id'] = $params['id'];
// $params_['is_del'] = $params['is_del'];
// $res = $this->aSite->updateSite($params_);//int(1)
// if($res == 1){
// return $this->response("200", "成功",['data'=>$res]);
// }else{
// return $this->response("300", "失败");
// }
// }
//
// public function siteLogList()
// {
// if (!$this->request->isAjax()) {
// return view('site/siteLogList');
// }
// }
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment