添加修改站点方法
This commit is contained in:
parent
6fbb553722
commit
283a2b7471
@ -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']]);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user