添加修改站点方法

This commit is contained in:
wangxiaowei 2024-10-09 15:34:46 +08:00
parent 6fbb553722
commit 283a2b7471
2 changed files with 2 additions and 2 deletions

@ -269,7 +269,7 @@ class LocalStore extends Api
public function getPostStationList()
{
$id = $this->request->post('id');
$post_station = LocalStorePostStation::where(['lstore_id' => $id, 'is_delete' => 0])->field('id, province, city, area, address, lat,lng')->select();
$post_station = LocalStorePostStation::where(['lstore_id' => $id, 'is_delete' => 0])->field('id, province, city, area, address, lat,lng, phone')->select();
if ($post_station) {
return JsonServer::success('成功获取', $post_station->toArray());
}

@ -489,7 +489,7 @@ class LocalStoreLogic extends Logic
throw new \Exception('自提点联系电话不能为空');
}
$result = LocalStorePostStation::where([
LocalStorePostStation::where([
'id' => $post['id'],
])->update(['phone' => $post['phone']]);
}