Commit 28b8b8e8 authored by hujun's avatar hujun

街铺start和end面积一样

parent ec152cba
......@@ -386,6 +386,11 @@ class GHouses extends BaseModel
$params['status'] = 1;
}
//街铺start和end面积一样
if ($params['shop_type'] == 1) {
$params['shop_area_end'] = $params['shop_area_start'];
}
//商铺总数为0下架
if (empty($params['total'])) {
$params['status'] = 2;
......@@ -911,11 +916,12 @@ class GHouses extends BaseModel
* 添加和编辑商铺
*
* @param $params
* @param $agent_id
* @return mixed
* @throws \Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\PDOException
*/
public function app_add($params, $agent_id)
{
......@@ -955,6 +961,10 @@ class GHouses extends BaseModel
$params['internal_title'] = trim($params['internal_title']);
}
//街铺start和end面积一样
if ($params['shop_type'] == 1) {
$params['shop_area_end'] = $params['shop_area_start'];
}
//新增或编辑
if (empty($params['id'])) {
......@@ -1177,6 +1187,10 @@ class GHouses extends BaseModel
$params['internal_title'] = trim($params['internal_title']);
}
//街铺start和end面积一样
if ($params['shop_type'] == 1) {
$params['shop_area_end'] = $params['shop_area_start'];
}
//新增或编辑
if (empty($params['id'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment