|
@@ -27,7 +27,7 @@ use think\App;class CatPlat extends Base{
|
|
|
if($platform==false){
|
|
|
return error_show(1004,"平台信息不存在");
|
|
|
}
|
|
|
- if ($platform['type']!=1) return error_show(1004,"平台为非对接平台");
|
|
|
+ if ($platform['platform_type']!=1) return error_show(1004,"平台为非对接平台");
|
|
|
$rate =isset($post['rate'])&&$post['rate']!=="" ? floor($post['rate']):"";
|
|
|
if($rate==""){
|
|
|
return error_show(1004,"参数 rate 不能为空");
|
|
@@ -99,7 +99,7 @@ use think\App;class CatPlat extends Base{
|
|
|
if($platform==false){
|
|
|
return error_show(1004,"平台信息不存在");
|
|
|
}
|
|
|
- if ($platform['type']!=1) return error_show(1004,"平台为非对接平台");
|
|
|
+ if ($platform['platform_type']!=1) return error_show(1004,"平台为非对接平台");
|
|
|
$rate =isset($post['rate'])&&$post['rate']!=="" ? floor($post['rate']):"";
|
|
|
if($rate==""){
|
|
|
return error_show(1004,"参数 rate 不能为空");
|
|
@@ -227,8 +227,8 @@ use think\App;class CatPlat extends Base{
|
|
|
if($spuCode==""){
|
|
|
return error_show(1005,"参数spuCode不能为空");
|
|
|
}
|
|
|
- $platid= isset($post['plat_id'])&&$post['plat_id']!=""?intval($post['plat_id']) :"";
|
|
|
- if($platid=="") return error_show(1005,"参数 plat_id 不能为空");
|
|
|
+ $platid= isset($post['platform_id'])&&$post['platform_id']!=""?intval($post['platform_id']) :"";
|
|
|
+ if($platid=="") return error_show(1005,"参数 platform_id 不能为空");
|
|
|
$platform = Db::name("platform")->where(["id"=>$platid,"is_del"=>0])->find();
|
|
|
if($platform==false){
|
|
|
return error_show(1004,"平台信息不存在");
|
|
@@ -237,7 +237,7 @@ use think\App;class CatPlat extends Base{
|
|
|
if($num==""){
|
|
|
return error_show(1005,"参数min_num不能为空");
|
|
|
}
|
|
|
- if ($platform['type']!=1) return error_show(1004,"平台为非对接平台");
|
|
|
+ if ($platform['platform_type']!=1) return error_show(1004,"平台为非对接平台");
|
|
|
$good =Db::name("good_basic")->where(["spuCode"=>$spuCode,"is_del"=>0])->find();
|
|
|
if($good==false){
|
|
|
return error_show(1005,"商品数据未找到");
|