修改自提点添加方式

This commit is contained in:
wangxiaowei 2024-09-29 17:23:43 +08:00
parent 7df498930c
commit e5b5e25a22
2 changed files with 3 additions and 5 deletions

@ -15,7 +15,7 @@ use think\facade\Db;
class LocalStore extends Api
{
public $like_not_need_login = ['makeMyPayImage', 'getLocalShopById', 'getLocalList', 'getLocation', 'addPostStation'];
public $like_not_need_login = ['makeMyPayImage', 'getLocalShopById', 'getLocalList', 'getLocation'];
public function getLocalStore()
{

@ -365,10 +365,8 @@ class LocalStoreLogic extends Logic
throw new \Exception('经纬度不能为空');
}
$lstore_id = $post['lstore_id'];
unset($post['lstore_id']);
$result = LocalStorePostStation::where(['user_id' => $user_id, 'lstore_id' => $lstore_id])->insert($post);
$post['user_id'] = $user_id;
$result = LocalStorePostStation::insert($post);
if ($result) {
return true;