分润功能log
This commit is contained in:
parent
0d9565096b
commit
718d0d0d06
|
@ -838,4 +838,22 @@ class IndexController extends BaseApiController
|
|||
|
||||
return $this->success('添加成功');
|
||||
}
|
||||
|
||||
public function getVillagerInfo()
|
||||
{
|
||||
$shopUserId = $this->request->get('shop_user_id');
|
||||
$detail = Db::name('villager_information')->where('shop_user_id', $shopUserId)->findOrEmpty();
|
||||
return $this->success('成功', $detail);
|
||||
}
|
||||
public function editVillagerInfo()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$params['house_rent_info'] = json_encode($params['house_rent_info']);
|
||||
$params['land_rent_info'] = json_encode($params['land_rent_info']);
|
||||
$params['product_info'] = json_encode($params['product_info']);
|
||||
$params['idle_asset_rent_info'] = json_encode($params['idle_asset_rent_info']);
|
||||
$params['house_decoration_construction'] = json_encode($params['house_decoration_construction']);
|
||||
Db::name('villager_information')->where('shop_user_id', $params['shop_user_id'])->update($params);
|
||||
return $this->success('更新成功');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue