接口修改1
This commit is contained in:
parent
7fa82136c5
commit
d01e2d8238
@ -663,6 +663,7 @@ class Article extends BaseController
|
||||
$saohei = Db::table('fa_article')->alias('a')->join(['fa_article_comment' => 'b'],'a.id=b.vote_id')->where('a.is_solve', 1)->where($where)->where('a.category_id', 149)->count();
|
||||
$sos = Db::table('fa_article')->alias('a')->join(['fa_article_comment' => 'b'],'a.id=b.vote_id')->where('a.is_solve', 1)->where($where)->where('a.category_id', 150)->count();
|
||||
$one_shuqiu = Db::table('fa_article')->alias('a')->join(['fa_article_comment' => 'b'],'a.id=b.vote_id')->where('a.is_solve', 1)->where($where)->where('a.category_id', 165)->count();
|
||||
$notice = Db::table('cms_notice')->where('status',1)->where('is_read',0)->count();
|
||||
$select = [
|
||||
'yishi' => $yishi,
|
||||
'maodun' => $maodun,
|
||||
@ -670,6 +671,7 @@ class Article extends BaseController
|
||||
'saohei' => $saohei,
|
||||
'sos' => $sos,
|
||||
'shuqiu' => $one_shuqiu,
|
||||
'notice' => $notice,
|
||||
];
|
||||
return $this->apiSuccess('ok', $select);
|
||||
}
|
||||
|
@ -755,7 +755,7 @@ class Maintainentry extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
$waste_land_area = $post['land_area'] - $mianji;
|
||||
$waste_land_area = $post['land_area'] - $mianji - $post['breed_area'];
|
||||
if($waste_land_area < 0){
|
||||
$waste_land_area = 0;
|
||||
}
|
||||
@ -1417,7 +1417,7 @@ class Maintainentry extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
$waste_land_area = $post['land_area'] - $mianji;
|
||||
$waste_land_area = $post['land_area'] - $mianji - $post['breed_area'];
|
||||
if($waste_land_area < 0){
|
||||
$waste_land_area = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user