修改自提点添加方式
This commit is contained in:
parent
7df498930c
commit
e5b5e25a22
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user