|
@@ -30,6 +30,10 @@ class Platform extends Base
|
|
if($platform_type===""){
|
|
if($platform_type===""){
|
|
return error_show(1002,"参数platform_type不能为空");
|
|
return error_show(1002,"参数platform_type不能为空");
|
|
}
|
|
}
|
|
|
|
+ $use_type = isset($this->post['use_type']) && $this->post['use_type'] !=="" ? intval($this->post['use_type']):"";
|
|
|
|
+ if($use_type===""){
|
|
|
|
+ return error_show(1002,"参数use_type不能为空");
|
|
|
|
+ }
|
|
$token = isset($this->post['token'])&& $this->post['token']!='' ? trim($this->post['token']):"";
|
|
$token = isset($this->post['token'])&& $this->post['token']!='' ? trim($this->post['token']):"";
|
|
if($token==''){
|
|
if($token==''){
|
|
return error_show(105,"参数token不能为空");
|
|
return error_show(105,"参数token不能为空");
|
|
@@ -46,6 +50,7 @@ class Platform extends Base
|
|
"platform_code"=>$platform_code,
|
|
"platform_code"=>$platform_code,
|
|
"platform_name"=>$platform_name,
|
|
"platform_name"=>$platform_name,
|
|
"platform_type"=>$platform_type,
|
|
"platform_type"=>$platform_type,
|
|
|
|
+ "use_type"=>$use_type,
|
|
"createrid"=>$action_id,
|
|
"createrid"=>$action_id,
|
|
"creater"=>$action_name,
|
|
"creater"=>$action_name,
|
|
"desc"=>$desc,
|
|
"desc"=>$desc,
|
|
@@ -132,6 +137,10 @@ class Platform extends Base
|
|
$platform_type = isset($this->post['platform_type']) && $this->post['platform_type'] !== "" ? intval($this->post['platform_type']) :"";
|
|
$platform_type = isset($this->post['platform_type']) && $this->post['platform_type'] !== "" ? intval($this->post['platform_type']) :"";
|
|
if($platform_type===""){
|
|
if($platform_type===""){
|
|
return error_show(1002,"参数platform_type不能为空");
|
|
return error_show(1002,"参数platform_type不能为空");
|
|
|
|
+ }
|
|
|
|
+ $use_type = isset($this->post['use_type']) && $this->post['use_type'] !=="" ? intval($this->post['use_type']):"";
|
|
|
|
+ if($use_type===""){
|
|
|
|
+ return error_show(1002,"参数use_type不能为空");
|
|
}
|
|
}
|
|
$token = isset($this->post['token']) && $this->post['token'] != '' ? trim($this->post['token']) : "";
|
|
$token = isset($this->post['token']) && $this->post['token'] != '' ? trim($this->post['token']) : "";
|
|
if ($token == '') {
|
|
if ($token == '') {
|
|
@@ -154,6 +163,7 @@ class Platform extends Base
|
|
"platform_code" => $platform_code,
|
|
"platform_code" => $platform_code,
|
|
"platform_name" => $platform_name,
|
|
"platform_name" => $platform_name,
|
|
"platform_type" => $platform_type,
|
|
"platform_type" => $platform_type,
|
|
|
|
+ "use_type"=>$use_type,
|
|
// "createrid" => $action_id,
|
|
// "createrid" => $action_id,
|
|
// "creater" => $action_name,
|
|
// "creater" => $action_name,
|
|
"desc" => $desc,
|
|
"desc" => $desc,
|
|
@@ -181,6 +191,7 @@ class Platform extends Base
|
|
if(empty($info)){
|
|
if(empty($info)){
|
|
return error_show(1004,'未找到数据');
|
|
return error_show(1004,'未找到数据');
|
|
}
|
|
}
|
|
|
|
+ $info['use_type'] = $info['use_type'] !=0 ? $info['use_type'] :"";
|
|
return app_show(0,"获取成功",$info);
|
|
return app_show(0,"获取成功",$info);
|
|
}
|
|
}
|
|
public function del(){
|
|
public function del(){
|