|
@@ -68,10 +68,11 @@ class SettingController extends Controller
|
|
{
|
|
{
|
|
$check_card_location = $this->model->firstOrCreate(['key' => 'check_card_location'], ['value' => '39.916527,116.397128']);
|
|
$check_card_location = $this->model->firstOrCreate(['key' => 'check_card_location'], ['value' => '39.916527,116.397128']);
|
|
$check_card_radius = $this->model->firstOrCreate(['key' => 'check_card_radius'], ['value' => '1000']);
|
|
$check_card_radius = $this->model->firstOrCreate(['key' => 'check_card_radius'], ['value' => '1000']);
|
|
|
|
+ $check_position = $this->model->firstOrCreate(['key' => 'check_position'], ['value' => '1']);
|
|
|
|
|
|
list($pre_uri, $model, $model_name) = array($this->pre_uri, $this->model, $this->model_name);
|
|
list($pre_uri, $model, $model_name) = array($this->pre_uri, $this->model, $this->model_name);
|
|
|
|
|
|
- return view($this->view_path . 'system', compact('pre_uri', 'model', 'model_name', 'check_card_location', 'check_card_radius'));
|
|
|
|
|
|
+ return view($this->view_path . 'system', compact('pre_uri', 'model', 'model_name', 'check_card_location', 'check_card_radius', 'check_position'));
|
|
}
|
|
}
|
|
|
|
|
|
public function updateSystem(Request $request)
|
|
public function updateSystem(Request $request)
|
|
@@ -80,7 +81,7 @@ class SettingController extends Controller
|
|
return $this->showWarning('访问错误');
|
|
return $this->showWarning('访问错误');
|
|
}
|
|
}
|
|
|
|
|
|
- $items = collect(['check_card_location', 'check_card_radius']);
|
|
|
|
|
|
+ $items = collect(['check_card_location', 'check_card_radius', 'check_position']);
|
|
|
|
|
|
foreach($items as $item) {
|
|
foreach($items as $item) {
|
|
if(!empty($request->input($item))) {
|
|
if(!empty($request->input($item))) {
|