| xqd
@@ -205,7 +205,6 @@ class ApiController extends Controller
|
|
|
$res = $client->get($url);
|
|
|
$res = json_decode((string)$res->getBody());
|
|
|
$result = 'no';
|
|
|
- dd($res);
|
|
|
if($res->status == 0) {
|
|
|
$radius = Setting::where('key', 'check_card_radius')->first();
|
|
|
$radius = empty($radius) ? 1000 : $radius->value;
|
| xqd
@@ -214,6 +213,7 @@ class ApiController extends Controller
|
|
|
$result = 'ok';
|
|
|
}
|
|
|
}
|
|
|
+ dd($res, $result);
|
|
|
$now = Carbon::today()->toDateTimeString();
|
|
|
$checkCard = CheckCard::where([
|
|
|
['begin_date_time', '>', $now]
|